test: cover empty compatibility method returns

This commit is contained in:
Hermes Agent
2026-09-18 15:24:45 +00:00
parent e17f450603
commit 19b624482f
6 changed files with 18 additions and 2 deletions
+3
View File
@@ -127,6 +127,9 @@ EXPECTED = {
"tests/typecheck_method_return_bad.claro": [
"tests/typecheck_method_return_bad.claro:3: Type mismatch for return from Player.score: expected NUMBER, but this value looks like TEXT.",
],
"tests/typecheck_method_compat_empty_return_bad.claro": [
"tests/typecheck_method_compat_empty_return_bad.claro:3: Method Player.score needs a NUMBER value after RETURN. Add a NUMBER expression.",
],
"tests/typecheck_method_compat_return_bad.claro": [
"tests/typecheck_method_compat_return_bad.claro:4: Type mismatch for return from Player.score: expected NUMBER, but this value looks like TEXT.",
],