typecheck: clarify extra return type tokens

This commit is contained in:
Hermes Agent
2026-09-18 07:10:27 +00:00
parent 3a9e3d0a8c
commit da2bd5c2e8
5 changed files with 10 additions and 3 deletions
+3
View File
@@ -308,6 +308,9 @@ EXPECTED = {
"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.",
],
"tests/typecheck_extra_teach_tokens_bad.claro": [
"tests/typecheck_extra_teach_tokens_bad.claro:1: Function greet has extra text after return type NUMBER. Keep only the function name, parameters, and one return type.",
],
"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.",
],