Avatar
Avatar
kebo
@swift-6.0.3 -enable-upcoming-feature ExistentialAny @swift-6.1-dev -enable-upcoming-feature ExistentialAny @swift-6.1-dev -enable-upcoming-feature ExistentialAny -Werror ExistentialAny protocol P {} func hoge() -> P { fatalError() } (edited)
exit status: 1 with <stdin>:2:16: error: use of protocol 'P' as a type must be written 'any P' 1 | protocol P {} 2 | func hoge() -> P { fatalError() } | `- error: use of protocol 'P' as a type must be written 'any P' 3 | (edited)