typecheck: preserve text operands in arithmetic diagnostics

This commit is contained in:
Hermes Agent
2026-09-07 04:28:03 +00:00
parent 2e990a4b00
commit 2cf5aaf3a9
7 changed files with 32 additions and 1 deletions
+3
View File
@@ -110,6 +110,9 @@ EXPECTED = {
"tests/typecheck_object_field_compound_bad.claro": [
"tests/typecheck_object_field_compound_bad.claro:8: Type mismatch for field player.score: expected NUMBER, but this value looks like TEXT.",
],
"tests/typecheck_object_field_subtraction_bad.claro": [
"tests/typecheck_object_field_subtraction_bad.claro:8: Type mismatch for field player.score: expected NUMBER, but this value looks like TEXT.",
],
"tests/typecheck_object_field_text_expression_bad.claro": [
"tests/typecheck_object_field_text_expression_bad.claro:8: Type mismatch for field player.name: expected TEXT, but this value looks like NUMBER.",
],