summaryrefslogtreecommitdiff
path: root/test/files/neg/t8667.check
Commit message (Collapse)AuthorAgeFilesLines
* SI-8667 Caret at bad argSom Snytt2016-05-131-22/+34
| | | | | | | | | | | | | | Pick the first excessive positional arg for the caret. Note that erroring on named args doesn't do the obvious thing in this regard. If `k` was removed from the signature, then `f(k=1, i=2, j=3)` doesn't tell us much about the wrong arg, because naming takes the `k=1` as an assignment, `i` as duplicate naming. No arg is deemed extra, though further inspection of the conflicting args might get there. Since assignment syntax in parens is more|less deprecated (?), no more effort is done here.
* SI-8667 Improve too-many-args messageSom Snytt2016-05-131-0/+79
Use removeNames to help diagnose the application. Supplement the error message with how many extra args and any other residual assignments that the user might have thought was a properly named arg. The error message is gradual: succinct for short arg lists, more verbose for longer applications. Very long arg lists are probably generated, so that message is the least colloquial.