Avatar
Avatar
Iceman
@swift-main protocol P {} struct S: P {} func f() -> () -> some P { return { S() } }
swiftNightly BOT 11/10/2022 5:46 AM
exit status: 1 with stderr:<stdin>:4:12: error: cannot convert value of type 'S' to closure result type 'some P' return { S() } ^~~