typecheck: explain text subtraction operands

This commit is contained in:
Hermes Agent
2026-09-07 16:44:18 +00:00
parent f88b27ae8c
commit 2e3b1c725f
5 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ EXPECTED = {
"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_subtraction_bad.claro:8: Type mismatch for field player.score: subtraction needs NUMBER values, but player.name looks like TEXT.",
],
"tests/typecheck_object_field_multiplication_bad.claro": [
"tests/typecheck_object_field_multiplication_bad.claro:8: Type mismatch for field player.score: expected NUMBER, but this value looks like TEXT.",