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
+1 -1
View File
@@ -195,7 +195,7 @@ Object player is not known yet. Create it with NEW ClassName player before calli
Object player is not known yet. Create it with NEW ClassName player before calling player.fly.
```
If the object exists but the class does not declare that method, Claro now names the class and suggests where to add the missing `TEACH` block:
If the object exists but the class does not declare that method, Claro now names the class and suggests where to add the missing `TEACH` block. This is validated for both modern `DO player.fly 5` and compatibility `CALL player.fly WITH 5` calls:
```text
Object Player has no method fly. Check the method name or add TEACH fly inside CLASS Player.