test: cover compatibility method subtraction diagnostics

This commit is contained in:
Hermes Agent
2026-09-13 00:36:05 +00:00
parent 747e8156e0
commit 0ee528d9ae
7 changed files with 41 additions and 2 deletions
+3
View File
@@ -58,6 +58,9 @@ EXPECTED = {
"tests/typecheck_method_compat_return_addition_bad.claro": [
"tests/typecheck_method_compat_return_addition_bad.claro:4: Type mismatch for return from Player.total: addition needs NUMBER values, but \"oops\" looks like TEXT.",
],
"tests/typecheck_method_compat_return_subtraction_bad.claro": [
"tests/typecheck_method_compat_return_subtraction_bad.claro:4: Type mismatch for return from Player.total: subtraction needs NUMBER values, but \"oops\" looks like TEXT.",
],
"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.",
],