typecheck: diagnose CALL method before NEW typos

This commit is contained in:
Hermes Agent
2026-09-01 11:18:58 +00:00
parent 73f5395b28
commit a9612c5074
7 changed files with 22 additions and 5 deletions
+3
View File
@@ -32,6 +32,9 @@ EXPECTED = {
"tests/typecheck_method_call_unknown_object_bad.claro": [
"tests/typecheck_method_call_unknown_object_bad.claro:10: Object player is not known yet. Create it with NEW ClassName player before calling player.add.",
],
"tests/typecheck_method_call_unknown_object_unknown_method_bad.claro": [
"tests/typecheck_method_call_unknown_object_unknown_method_bad.claro:10: Object player is not known yet. Create it with NEW ClassName player before calling player.fly.",
],
"tests/typecheck_method_unknown_method_bad.claro": [
"tests/typecheck_method_unknown_method_bad.claro:11: Object Player has no method fly. Check the method name or add TEACH fly inside CLASS Player.",
],