[SR-11542] bad diagnostic when function invoked with trailing closure syntax and default args after closure #53943
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
Additional Detail from JIRA
md5: 3a7dc68bd8326dd7437f59d25f32964e
Issue Description:
The following program might not be quite correct (because the trailing closure syntax is used but it's not actually the last argument)
The diagnostic however is pretty bad:
it claims that it can't invoke
test
with an argument list of() -> ()
which totally works though 🙂The text was updated successfully, but these errors were encountered: