Avatar
Each of these three declarations should type check, but doesn't: protocol P { } extension P { func f1() -> () -> (some P) { return { self } // error: cannot convert value of t...
5:43 AM
5:44 AM
似たようなもっと難しいやつ直されてるな
5:44 AM
@swift-main protocol P {} extension P { func f() -> () -> some P { let fn = { self } return fn } } (edited)