typecheck: prioritize missing TYPE OF expressions

This commit is contained in:
Hermes Agent
2026-09-20 02:30:55 +00:00
parent bcaadf0423
commit 1a2de275d1
6 changed files with 13 additions and 1 deletions
+3
View File
@@ -7,6 +7,9 @@ ROOT = Path(__file__).resolve().parents[1]
EXE = ROOT / ("claro.exe" if os.name == "nt" else "claro")
EXPECTED = {
"tests/typecheck_missing_type_of_expression_extra_tokens_bad.claro": [
"tests/typecheck_missing_type_of_expression_extra_tokens_bad.claro:1: TYPE OF needs an expression before AS. Try: TYPE OF score AS kind.",
],
"tests/typecheck_missing_type_of_expression_bad.claro": [
"tests/typecheck_missing_type_of_expression_bad.claro:1: TYPE OF needs an expression before AS. Try: TYPE OF score AS kind.",
],