test: cover compatibility function missing returns

This commit is contained in:
Hermes Agent
2026-09-19 12:01:25 +00:00
parent 30713c71c1
commit 1bc11207ef
6 changed files with 22 additions and 3 deletions
+3
View File
@@ -136,6 +136,9 @@ EXPECTED = {
"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.",
],
"tests/typecheck_function_compat_missing_return_bad.claro": [
"tests/typecheck_function_compat_missing_return_bad.claro:3: Function square declares RETURNS NUMBER but has no RETURN statement. Add RETURN with a NUMBER value.",
],
"tests/typecheck_function_branch_missing_return_bad.claro": [
"tests/typecheck_function_branch_missing_return_bad.claro:5: Function choose declares RETURNS NUMBER but does not return a NUMBER value on every path. Add RETURN to each branch or after the conditional.",
],