feat: diagnose missing object field type checks

This commit is contained in:
Hermes Agent
2026-08-05 19:06:28 +00:00
parent b2c2975696
commit 68104bd25a
7 changed files with 31 additions and 5 deletions
+6
View File
@@ -217,6 +217,12 @@ YESNO expectations are validated too; `CHECK TYPE player.enabled IS YESNO` repor
Object Player has no field enabled. Check the field name or add HAS enabled YESNO to the class.
```
If a learner checks a field before creating the object with `NEW`, `claro typecheck` points to the missing object setup:
```text
Object player is not known yet. Create it with NEW ClassName player before checking player.score.
```
## Project and package workflow
v1.18.26 hardens Claro's project/package workflow.