typecheck: clarify extra CHECK TYPE tokens

This commit is contained in:
Hermes Agent
2026-09-17 18:46:36 +00:00
parent 1204731785
commit 9b26a854e2
6 changed files with 16 additions and 1 deletions
+3
View File
@@ -293,6 +293,9 @@ EXPECTED = {
"tests/typecheck_missing_is_bad.claro": [
"tests/typecheck_missing_is_bad.claro:2: CHECK TYPE needs IS. Try: CHECK TYPE score IS NUMBER.",
],
"tests/typecheck_extra_check_type_tokens_bad.claro": [
"tests/typecheck_extra_check_type_tokens_bad.claro:2: CHECK TYPE score has extra text after type NUMBER. Keep only the expression, IS, and one type.",
],
"tests/typecheck_invalid_return_type_bad.claro": [
"tests/typecheck_invalid_return_type_bad.claro:1: Function square declares an unknown return type BANANA. Use a Claro type such as NUMBER, TEXT, YESNO, LIST, or MAP.",
],