test: cover compatibility unknown field annotations

This commit is contained in:
Hermes Agent
2026-09-15 17:06:45 +00:00
parent 304c43ba45
commit f7452c119c
6 changed files with 20 additions and 0 deletions
+1
View File
@@ -70,6 +70,7 @@ Still needed:
- typed imports/modules
- inline method-field annotations must agree with the class `HAS` declaration in both modern `TEACH` / `END` and compatibility `TAKES` / `LEARNED` methods; conflicting annotations now get a repair-oriented diagnostic even when the value's inferred type is otherwise correct.
- inline method-field annotations also reject unknown names such as `BANANA`, naming the field and method and suggesting the class-declared type.
- compatibility `TEACH ... TAKES ...` / `LEARNED` methods have matching validation for unknown inline field annotations, so older lessons receive the same repair guidance.
Good starting docs:
- `ADVANCED_STATIC_TYPING.md`