Avatar
Avatar
Iceman
@swift-main protocol P {} extension Int: P {} func f() -> [some P] { [1, 2] } print(f()) (edited)
swiftNightly BOT 10/30/2021 5:00 PM
exit status: 1 with stderr:<stdin>:3:13: error: 'opaque' types cannot be nested inside other types; structural 'opaque' types are an experimental feature func f() -> [some P] { [1, 2] } ^ (edited)