Avatar
Avatar
nanasi
@swift-main var f: (Int..., Bool) -> Void = { a, b in print(a, b) } f(1, false) // ng
swiftNightly BOT 11/21/2022 2:16 AM
exit status: 1 with stderr:<stdin>:2:4: error: missing argument for parameter #2 in call f(1, false) // ng ^ , <#Bool#> <stdin>:1:5: note: 'f' declared here var f: (Int..., Bool) -> Void = { a, b in print(a, b) } ^ <stdin>:2:6: error: cannot convert value of type 'Bool' to expected argument type 'Int' f(1, false) // ng ^