typecheck: diagnose missing TYPE OF result names

This commit is contained in:
Hermes Agent
2026-09-19 20:19:12 +00:00
parent cdb5b75c62
commit 7d081f346c
6 changed files with 19 additions and 1 deletions
+3
View File
@@ -10,6 +10,9 @@ 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_missing_type_of_result_name_bad.claro": [
"tests/typecheck_missing_type_of_result_name_bad.claro:1: TYPE OF needs a result name after 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.",
],