test: cover empty compatibility function returns

This commit is contained in:
Hermes Agent
2026-09-18 23:41:22 +00:00
parent ede2e333fb
commit b79db4f25c
7 changed files with 18 additions and 2 deletions
+3
View File
@@ -73,6 +73,9 @@ EXPECTED = {
"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_function_compat_empty_return_bad.claro": [
"tests/typecheck_function_compat_empty_return_bad.claro:3: Function square needs a NUMBER value after RETURN. Add a NUMBER expression.",
],
"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.",
],