test: cover compatibility method field diagnostics

This commit is contained in:
Hermes Agent
2026-09-13 13:01:25 +00:00
parent 915bc7f1bc
commit ae41341a7d
6 changed files with 29 additions and 2 deletions
+5
View File
@@ -4,6 +4,11 @@
- Typecheck diagnostics for typed method-body field assignments now name the class method and arithmetic operation when a known TEXT operand is used in a NUMBER field update.
### Compatibility method field-assignment diagnostics
- Added focused positive and negative typecheck fixtures for older `TEACH ... TAKES ...` / `LEARNED` methods that assign to typed class fields.
- Release validation now preserves the learner-facing `Class.method` name in these compatibility diagnostics.
### Validate compatibility method multiplication diagnostics
- Added focused negative typecheck coverage proving that the older `TAKES` / `LEARNED` method syntax identifies a TEXT operand in a NUMBER multiplication return and explains the required operand type.