typecheck: reject extra class field tokens

This commit is contained in:
Hermes Agent
2026-09-16 20:05:25 +00:00
parent d9c32ca973
commit 638dd8e763
6 changed files with 13 additions and 5 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ Keep declared return types honest: `claro typecheck` now reports friendly diagno
8l. Keep object creation understandable: when classes are declared in a script, an unknown `NEW` class name now gets a direct class-name diagnostic and repair hint; the older permissive `NEW` behavior remains when no class declarations are present.
8m. Keep class field metadata understandable: a missing or unknown type in a `HAS field TYPE` declaration now gets a class-and-field diagnostic with supported type examples before object-field checks use that metadata.
8m. Keep class field metadata understandable: a missing or unknown type in a `HAS field TYPE` declaration, or extra text after a valid type, now gets a class-and-field diagnostic with supported type examples or a direct repair hint before object-field checks use that metadata.
### 1. Strong static types