typecheck: clarify bare TYPE OF diagnostics

This commit is contained in:
Hermes Agent
2026-09-20 00:27:22 +00:00
parent 5cdb88b30a
commit bcaadf0423
5 changed files with 7 additions and 1 deletions
+3
View File
@@ -338,6 +338,9 @@ EXPECTED = {
"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_missing_type_of_parts_bad.claro": [
"tests/typecheck_missing_type_of_parts_bad.claro:1: TYPE OF needs an expression, AS, and a result name. Try: TYPE OF score AS kind.",
],
"tests/typecheck_extra_type_of_tokens_bad.claro": [
"tests/typecheck_extra_type_of_tokens_bad.claro:2: TYPE OF score has extra text after result name kind. Keep only the expression, AS, and one result name.",
],