Avatar
@swiftbot protocol Animal { func foo() -> Self } class Cat: Animal { func foo() -> Cat { return Cat() } } class Siamese: Cat { } let siamese = Siamese() let cat = siamese.foo()
🛠 1