test: cover incomplete method return paths

This commit is contained in:
Hermes Agent
2026-09-10 00:25:12 +00:00
parent 39be2a57ef
commit 9d3148ac36
5 changed files with 17 additions and 2 deletions
+5
View File
@@ -7,6 +7,11 @@
- Added focused coverage proving that the older `TEACH ... TAKES ... RETURNS TYPE` / `LEARNED` method syntax receives the same learner-facing return-type diagnostic as modern methods.
- Added the compatibility method fixture to the complete typecheck diagnostics validator.
### Validate incomplete method return paths
- Added focused typecheck coverage proving that a typed method with an incomplete conditional return reports the same learner-facing missing-path diagnostic as a typed function.
- Added the method fixture to both `claro validate` and the complete typecheck diagnostics validator.
### Validate compatibility function return types
- Added focused coverage proving that the older `TEACH ... TAKES ... RETURNS TYPE` / `LEARNED` syntax receives the same learner-facing return-type diagnostic as modern functions.