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
+11
View File
@@ -0,0 +1,11 @@
CLASS Player
HAS score NUMBER
TEACH add points
CHECK TYPE points IS NUMBER
SET score score + points
END
END
NEW Player player
DO player.add 5