test: cover unknown compatibility return expressions

This commit is contained in:
Hermes Agent
2026-09-19 01:43:51 +00:00
parent b79db4f25c
commit 039da8159e
6 changed files with 17 additions and 0 deletions
+3
View File
@@ -130,6 +130,9 @@ EXPECTED = {
"tests/typecheck_function_unknown_return_expression_bad.claro": [
"tests/typecheck_function_unknown_return_expression_bad.claro:2: Function square's return value could not be understood yet. Use a NUMBER expression after RETURN.",
],
"tests/typecheck_function_compat_unknown_return_expression_bad.claro": [
"tests/typecheck_function_compat_unknown_return_expression_bad.claro:3: Function square's return value could not be understood yet. Use a NUMBER expression after RETURN.",
],
"tests/typecheck_function_missing_return_bad.claro": [
"tests/typecheck_function_missing_return_bad.claro:3: Function square declares RETURNS NUMBER but has no RETURN statement. Add RETURN with a NUMBER value.",
],