Avatar
Avatar
omochimetaru
@swift-5.5.3 protocol P {} protocol Q { func p() -> some P } func foo(q: Q) -> some P { return q.p() }
exit status: 1 with stderr:<stdin>:3:15: error: 'some' type cannot be the return type of a protocol requirement; did you mean to add an associated type? func p() -> some P ^~~~~~ <#AssocType#>