typecheck: diagnose extra function args
This commit is contained in:
@@ -146,6 +146,7 @@ DO square "oops"
|
||||
```text
|
||||
Type mismatch for function square: parameter amount needs NUMBER, but this argument looks like TEXT.
|
||||
Function square needs argument amount as NUMBER, but this call does not provide it.
|
||||
Function square only accepts 1 argument, but this call gives 2. Remove the extra argument.
|
||||
```
|
||||
|
||||
For functions with more than one checked parameter, Claro reports each mismatched argument with the parameter name:
|
||||
|
||||
Reference in New Issue
Block a user