feat: add object method parameter diagnostics

This commit is contained in:
Hermes Agent
2026-06-10 15:23:21 -06:00
parent bd96963fb8
commit b3ee0bbfad
8 changed files with 83 additions and 12 deletions
+3
View File
@@ -23,6 +23,9 @@ EXPECTED = {
"tests/typecheck_function_multi_bad.claro:8: Type mismatch for function label: parameter name needs TEXT, but this argument looks like NUMBER.",
"tests/typecheck_function_multi_bad.claro:8: Type mismatch for function label: parameter age needs NUMBER, but this argument looks like TEXT.",
],
"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.",
],
}
EXPECTED_OK = [