Avatar
norio_nomura 5/1/2019 11:45 PM
@swift-main @swift-5.1.5 protocol Animal {} struct Cat: Animal {} func makeAnimal() -> some Animal { return Cat() } print(makeAnimal()) (edited)