typecheck: diagnose missing TYPE OF AS

This commit is contained in:
Hermes Agent
2026-09-18 03:02:00 +00:00
parent 053aa8aa55
commit 7f0d12ac59
6 changed files with 14 additions and 1 deletions
+3
View File
@@ -302,6 +302,9 @@ EXPECTED = {
"tests/typecheck_missing_expression_with_is_bad.claro": [
"tests/typecheck_missing_expression_with_is_bad.claro:1: CHECK TYPE needs an expression before IS. Try: CHECK TYPE score IS NUMBER.",
],
"tests/typecheck_missing_type_of_as_bad.claro": [
"tests/typecheck_missing_type_of_as_bad.claro:2: TYPE OF needs AS. Try: TYPE OF score AS kind.",
],
"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.",
],