feat: improve object field type diagnostics

This commit is contained in:
Hermes Agent
2026-06-12 03:07:42 -06:00
parent 5edb915668
commit 2636d2ab8c
8 changed files with 63 additions and 8 deletions
+6
View File
@@ -174,6 +174,12 @@ DO player.add "five"
Type mismatch for method Player.add: parameter points needs NUMBER, but this argument looks like TEXT.
```
For simple object fields created with `NEW Class name`, `claro typecheck` also catches direct wrong-type field assignments such as `SET player.score "ten"` when the class says `HAS score NUMBER`:
```text
Type mismatch for field player.score: expected NUMBER, but this value looks like TEXT.
```
## Project and package workflow
v1.18.26 hardens Claro's project/package workflow.