feat: add object field unknown-field diagnostic

This commit is contained in:
Hermes Agent
2026-06-23 03:06:22 -06:00
parent 5914524ad6
commit 5a63e76a44
8 changed files with 42 additions and 5 deletions
+6
View File
@@ -180,6 +180,12 @@ For simple object fields created with `NEW Class name`, `claro typecheck` also c
Type mismatch for field player.score: expected NUMBER, but this value looks like TEXT.
```
It also catches direct assignments to undeclared fields and suggests the matching `HAS` line:
```text
Object Player has no field level. Check the field name or add HAS level NUMBER to the class.
```
## Project and package workflow
v1.18.26 hardens Claro's project/package workflow.