typecheck: diagnose empty CALL arguments
This commit is contained in:
@@ -29,6 +29,9 @@ EXPECTED = {
|
||||
"tests/typecheck_function_missing_unchecked_arg_bad.claro": [
|
||||
"tests/typecheck_function_missing_unchecked_arg_bad.claro:5: Function greet needs 1 argument, but this call gives 0. Add the missing argument.",
|
||||
],
|
||||
"tests/typecheck_function_call_missing_unchecked_arg_bad.claro": [
|
||||
"tests/typecheck_function_call_missing_unchecked_arg_bad.claro:5: Function greet needs 1 argument, but this call gives 0. Add the missing argument.",
|
||||
],
|
||||
"tests/typecheck_function_extra_arg_bad.claro": [
|
||||
"tests/typecheck_function_extra_arg_bad.claro:6: Function square only accepts 1 argument, but this call gives 2. Remove the extra argument.",
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user