typecheck: validate missing method args

This commit is contained in:
Hermes Agent
2026-09-01 15:24:24 +00:00
parent 48189afd80
commit 246a5a28b2
6 changed files with 30 additions and 3 deletions
+3
View File
@@ -29,6 +29,9 @@ EXPECTED = {
"tests/typecheck_method_bad.claro": [
"tests/typecheck_method_bad.claro:11: Type mismatch for method Player.add: parameter points needs NUMBER, but this argument looks like TEXT.",
],
"tests/typecheck_method_missing_arg_bad.claro": [
"tests/typecheck_method_missing_arg_bad.claro:11: Method Player.add needs argument points as NUMBER, but this call does not provide it.",
],
"tests/typecheck_method_unknown_object_bad.claro": [
"tests/typecheck_method_unknown_object_bad.claro:10: Object player is not known yet. Create it with NEW ClassName player before calling player.add.",
],