typecheck: preserve later method arity checks

This commit is contained in:
Hermes Agent
2026-09-02 07:53:04 +00:00
parent 0839bdeb5d
commit b8385f675a
7 changed files with 23 additions and 5 deletions
+3
View File
@@ -44,6 +44,9 @@ EXPECTED = {
"tests/typecheck_method_second_method_bad.claro": [
"tests/typecheck_method_second_method_bad.claro:15: Type mismatch for method Player.add: parameter points needs NUMBER, but this argument looks like TEXT.",
],
"tests/typecheck_method_second_method_extra_arg_bad.claro": [
"tests/typecheck_method_second_method_extra_arg_bad.claro:15: Method Player.add only accepts 1 argument, but this call gives 2. Remove the extra argument.",
],
"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.",
],