Avatar
omochimetaru 4/29/2020 7:11 AM
@swift-5.3.3 protocol Initializable { init() } struct MyStruct: Initializable { init() {} } protocol P { associatedtype Assoc func foo() -> Assoc func bar() -> Assoc } struct S: P { func foo() -> some Initializable { return MyStruct() } func bar() -> some Initializable { return MyStruct() } }