test: add object method positive typecheck fixture

This commit is contained in:
Hermes Agent
2026-06-11 03:05:00 -06:00
parent b3ee0bbfad
commit 5edb915668
8 changed files with 19 additions and 5 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ END
CALL label WITH 7, "old"
```
The same narrow diagnostic foundation now covers simple object method calls when the object was created with `NEW` and the method body uses `CHECK TYPE` for a parameter:
The same narrow diagnostic foundation now covers simple object method calls when the object was created with `NEW` and the method body uses `CHECK TYPE` for a parameter. Correct calls such as `DO player.add 5` are covered by validation, and wrong-type calls get a focused learner-facing error:
```claro
CLASS Player