typecheck: diagnose missing TYPE OF expressions

This commit is contained in:
Hermes Agent
2026-09-19 18:14:52 +00:00
parent deb09cff8b
commit 9beb0e167e
7 changed files with 27 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_bad.claro": [
"tests/typecheck_missing_type_of_expression_bad.claro:1: TYPE OF needs an expression before AS. Try: TYPE OF score AS kind.",
],
"tests/typecheck_function_duplicate_param_bad.claro": [
"tests/typecheck_function_duplicate_param_bad.claro:1: Function greet declares parameter name more than once. Give each parameter a different name.",
],