test: cover compatibility function return tokens

This commit is contained in:
Hermes Agent
2026-09-18 21:37:24 +00:00
parent ea15117a1f
commit ede2e333fb
7 changed files with 17 additions and 3 deletions
+3
View File
@@ -70,6 +70,9 @@ EXPECTED = {
"tests/typecheck_function_return_extra_tokens_bad.claro": [
"tests/typecheck_function_return_extra_tokens_bad.claro:2: Function square has extra text after return value amount. Keep only one expression after RETURN.",
],
"tests/typecheck_function_compat_return_extra_tokens_bad.claro": [
"tests/typecheck_function_compat_return_extra_tokens_bad.claro:2: Function square has extra text after return value amount. Keep only one expression after RETURN.",
],
"tests/typecheck_method_return_extra_tokens_bad.claro": [
"tests/typecheck_method_return_extra_tokens_bad.claro:4: Method Player.total has extra text after return value 1. Keep only one expression after RETURN.",
],