test: cover extra return tokens in methods

This commit is contained in:
Hermes Agent
2026-09-18 19:33:51 +00:00
parent ebfa3aa52e
commit ea15117a1f
6 changed files with 22 additions and 1 deletions
+6
View File
@@ -70,6 +70,12 @@ 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_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.",
],
"tests/typecheck_method_compat_return_extra_tokens_bad.claro": [
"tests/typecheck_method_compat_return_extra_tokens_bad.claro:4: Method Player.total has extra text after return value amount. Keep only one expression after RETURN.",
],
"tests/typecheck_function_lowercase_return_bad.claro": [
"tests/typecheck_function_lowercase_return_bad.claro:2: Type mismatch for return from square: expected NUMBER, but this value looks like TEXT.",
],