Avatar
Avatar
Iceman
@swift-5.7.3 protocol P {} struct S: P {} func f1() -> some P { S() } func f2() -> () -> some P { { S() } }
exit status: 1 with stderr:<stdin>:8:5: error: cannot convert value of type 'S' to closure result type 'some P' { S() } ^~~