Avatar
exit status: 1 with stderr:<stdin>:13:8: error: type 'S' does not conform to protocol 'P' struct S: P { ^ <stdin>:8:18: note: ambiguous inference of associated type 'Assoc': 'some Initializable' (result of 'S.bar()') vs. 'some Initializable' (result of 'S.foo()') associatedtype Assoc ^ <stdin>:15:8: note: matching requirement 'bar()' to this declaration inferred associated type to 'some Initializable' func bar() -> some Initializable { return MyStruct() } ^ <stdin>:14:8: note: matching requirement 'foo()' to this declaration inferred associated type to 'some Initializable' func foo() -> some Initializable { return MyStruct() } ^