Avatar
Avatar
kntk
@swift-main typealias Body = () -> (() -> Void) let a: Body = {{}} let _: Body? = a (edited)
swiftNightly BOT 6/25/2025 8:36 AM
exit status 1 with stderr:<stdin>:3:16: error: cannot convert value of type '() -> Void' to specified type 'Body' (aka '() -> () -> ()') 1 | typealias Body = () -> (() -> Void) 2 | let a: Body = {{}} 3 | let _: Body? = a | `- error: cannot convert value of type '() -> Void' to specified type 'Body' (aka '() -> () -> ()') 4 | (edited)