Avatar
Avatar
kntk
@swift-6.1.2 @swift-6.2-dev @swift-main typealias Body = () -> (() -> Void) func hoge(a: @escaping Body) { let _: Body? = a } (edited)
exit status 1 with stderr:<stdin>:3:20: error: cannot convert value of type '() -> Void' to specified type 'Body' (aka '() -> () -> ()') 1 | typealias Body = () -> (() -> Void) 2 | func hoge(a: @escaping Body) { 3 | let _: Body? = a | `- error: cannot convert value of type '() -> Void' to specified type 'Body' (aka '() -> () -> ()') 4 | } 5 | (edited)
🤔 2