feat: diagnose unknown object methods

This commit is contained in:
Hermes Agent
2026-08-13 15:30:33 +00:00
parent 40f7881afd
commit 1cbdc1e56a
7 changed files with 40 additions and 4 deletions
+3
View File
@@ -29,6 +29,9 @@ EXPECTED = {
"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.",
],
"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.",
],
"tests/typecheck_object_field_bad.claro": [
"tests/typecheck_object_field_bad.claro:6: Type mismatch for field player.score: expected NUMBER, but this value looks like TEXT.",
],