Avatar
Avatar
omochimetaru
@swift-main -enable-upcoming-feature ExistentialAny protocol Foo {} struct A { var x: Foo var y: Codable var z: Error }
swiftNightly BOT 4/27/2023 1:15 PM
exit status: 1 with <stdin>:3:12: error: use of protocol 'Foo' as a type must be written 'any Foo' var x: Foo ^~~ any Foo <stdin>:4:12: error: use of 'Codable' (aka 'Decodable & Encodable') as a type must be written 'any Codable' (aka 'any Decodable & Encodable') var y: Codable ^~~~~~~ any Codable <stdin>:4:12: error: use of 'Codable' (aka 'Decodable & Encodable') as a type must be written 'any Codable' (aka 'any Decodable & Encodable') var y: Codable ^~~~~~~ any Codable <stdin>:5:12: error: use of protocol 'Error' as a type must be written 'any Error' var z: Error ^~~~~ any Error