typecheck: diagnose missing object names

This commit is contained in:
Hermes Agent
2026-09-17 08:28:23 +00:00
parent b0dbe976de
commit 6dcb86b920
7 changed files with 19 additions and 3 deletions
+2
View File
@@ -67,6 +67,8 @@ Keep declared return types honest: `claro typecheck` now reports friendly diagno
8o. Keep class declarations understandable: a bare `CLASS` now gets a direct diagnostic explaining that a class name is required, with a small example repair.
8p. Keep object declarations understandable: a `NEW` statement with a class but no object name now gets a direct diagnostic with a complete `NEW Player player` repair example.
### 1. Strong static types
Goal: make larger beginner programs safer without making first scripts harder.