typecheck: diagnose missing field values

This commit is contained in:
Hermes Agent
2026-09-21 11:38:51 +00:00
parent 44937b074f
commit 21cff73185
7 changed files with 27 additions and 2 deletions
+10
View File
@@ -832,6 +832,16 @@ with a repair hint instead of being silently ignored:
SET player.score AS NUMBER TO 10 extra
```
The separated form also needs a value after `TO`:
```claro
SET player.score AS NUMBER TO
```
```text
SET player.score needs a value after type NUMBER and TO. Add one expression.
```
```text
SET player.score has extra text after value 10. Keep only the field name, type, TO, and one expression.
```