typecheck: clarify missing CHECK TYPE expression

This commit is contained in:
Hermes Agent
2026-09-17 22:54:48 +00:00
parent cd92a04303
commit b59b240f0f
6 changed files with 15 additions and 3 deletions
+3
View File
@@ -296,6 +296,9 @@ EXPECTED = {
"tests/typecheck_missing_expected_type_bad.claro": [
"tests/typecheck_missing_expected_type_bad.claro:2: CHECK TYPE score needs a type after IS. Try: CHECK TYPE score IS NUMBER.",
],
"tests/typecheck_missing_expression_bad.claro": [
"tests/typecheck_missing_expression_bad.claro:1: CHECK TYPE needs an expression, IS, and a type. 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.",
],