typecheck: validate CALL unknown methods

This commit is contained in:
Hermes Agent
2026-09-02 18:10:02 +00:00
parent bbb5787e80
commit f2acef6a12
6 changed files with 19 additions and 4 deletions
+3
View File
@@ -74,6 +74,9 @@ EXPECTED = {
"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_method_call_unknown_method_bad.claro": [
"tests/typecheck_method_call_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.",
],