typecheck: diagnose empty CALL arguments

This commit is contained in:
Hermes Agent
2026-09-02 16:06:18 +00:00
parent 873177f216
commit bbb5787e80
7 changed files with 24 additions and 4 deletions
+3
View File
@@ -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.",
],