Avatar
@swift-5.6.3 @swift-5.7.3 protocol P {} protocol Q {} struct S: P {} extension Q { func p() -> some P { return S() } } func foo(q: Q) -> some P { return q.p() }