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