Bad diagnostic if function call is missing an argument label
Closed this issue · 1 comments
ahoppen commented
Issue Kind
Bad Diagnostic Produced
Source Code
foo(: 1)
Description
Currently produces the following diagnostics:
stdin:1:5: error: expected value in function call
1 │ foo(: 1)
│ ├─ error: expected value in function call
│ ╰─ error: unexpected code ': 1' in function call
We should be diagnosing that there is a missing argument label in the call.
ahoppen commented
Tracked in Apple’s issue tracker as rdar://121359674