Avatar
Avatar
Iceman
@swift-main let foo = { () -> some Codable in 1 }() print(foo)
swiftNightly BOT 6/12/2024 12:52 PM
exit status: 1 with <stdin>:1:19: error: 'some' types are only permitted in properties, subscripts, and functions 1 | let foo = { () -> some Codable in 1 }() | `- error: 'some' types are only permitted in properties, subscripts, and functions 2 | print(foo) 3 |