typecheck: preserve lowercase return declarations

This commit is contained in:
Hermes Agent
2026-09-10 14:56:37 +00:00
parent 561c272e81
commit 1e4f15b486
7 changed files with 24 additions and 4 deletions
+3
View File
@@ -22,6 +22,9 @@ EXPECTED = {
"tests/typecheck_function_return_bad.claro": [
"tests/typecheck_function_return_bad.claro:3: Type mismatch for return from square: expected NUMBER, but this value looks like TEXT.",
],
"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.",
],
"tests/typecheck_function_compat_return_bad.claro": [
"tests/typecheck_function_compat_return_bad.claro:3: Type mismatch for return from square: expected NUMBER, but this value looks like TEXT.",
],