test: cover compatibility alias extra arguments

This commit is contained in:
Hermes Agent
2026-09-10 10:49:02 +00:00
parent 1fb43e306a
commit 8876fd3f15
5 changed files with 21 additions and 1 deletions
+3
View File
@@ -212,6 +212,9 @@ EXPECTED = {
"tests/typecheck_object_alias_method_call_bad.claro": [
"tests/typecheck_object_alias_method_call_bad.claro:12: Type mismatch for method Player.add: parameter points needs NUMBER, but this argument looks like TEXT.",
],
"tests/typecheck_object_alias_method_call_extra_arg_bad.claro": [
"tests/typecheck_object_alias_method_call_extra_arg_bad.claro:12: Method Player.add only accepts 1 argument, but this call gives 2. Remove the extra argument.",
],
}
EXPECTED_OK = [