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)
swift -enable-upcoming-feature ExistentialAny - <stdin>:2:16: warning: use of protocol 'P' as a type must be written 'any P'; this will be an error in a future Swift language mode 1 | protocol P {} 2 | func hoge() -> P { fatalError() } | `- warning: use of protocol 'P' as a type must be written 'any P'; this will be an error in a future Swift language mode 3 | (edited)