typecheck: diagnose missing unchecked function args

This commit is contained in:
Hermes Agent
2026-09-02 12:00:07 +00:00
parent 3173eafb36
commit 1e3e7fd9fa
8 changed files with 25 additions and 4 deletions
+3
View File
@@ -26,6 +26,9 @@ EXPECTED = {
"tests/typecheck_function_missing_arg_bad.claro": [
"tests/typecheck_function_missing_arg_bad.claro:6: Function square needs argument amount as NUMBER, but this call does not provide it.",
],
"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_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.",
],