typecheck: reject unknown class field types

This commit is contained in:
Hermes Agent
2026-09-16 15:54:26 +00:00
parent 139838d56e
commit 31d87c7a5d
8 changed files with 19 additions and 2 deletions
+2
View File
@@ -60,6 +60,8 @@ 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: an 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.
### 1. Strong static types
Goal: make larger beginner programs safer without making first scripts harder.