validate method field diagnostics in release gate

This commit is contained in:
Hermes Agent
2026-09-13 17:07:47 +00:00
parent d690ff5a0f
commit 2fa094c8fb
5 changed files with 14 additions and 3 deletions
-1
View File
@@ -59,7 +59,6 @@ Ready now:
Still needed:
- typed method-body `CHECK TYPE` diagnostics and assignments name the class method when a simple class field receives a known mismatch or arithmetic expression, such as `CHECK TYPE name IS NUMBER` or `SET name 123` inside `Player.rename`, or `SET score score + name` inside `Player.add RETURNS NUMBER`; matching text and numeric coverage is validated for modern and compatibility method syntax
- Keep the focused typecheck validator's fixture list complete as new positive and negative examples are added. `claro validate` now executes the complete focused fixture matrix as well, so release validation cannot silently omit a listed typecheck example.
- The expression checker now carries a known TEXT operand through all arithmetic operators so object-field and typed-function-return diagnostics do not hide addition, subtraction, multiplication, or division mistakes; focused numeric-subtraction, numeric-division, and numeric-multiplication positives plus text-operand addition, subtraction, multiplication, and division negatives protect this behavior. Typed-function return diagnostics now have focused subtraction and division positives alongside multiplication coverage. Text concatenation into a TEXT field has focused positive fixtures for both operand orders, including concatenation of two TEXT object fields. Each numeric operator names the text operand and explains that it needs NUMBER values.
- Method return validation now has focused positive subtraction and division fixtures alongside the existing arithmetic return coverage, including compatibility `TAKES` / `LEARNED` subtraction and division cases, so checked NUMBER method parameters and numeric subtraction or division remain accepted by the release validator in both method spellings.