typecheck: explain text operands in addition
This commit is contained in:
@@ -108,7 +108,10 @@ EXPECTED = {
|
||||
"tests/typecheck_object_field_expression_bad.claro:8: Type mismatch for field player.score: expected NUMBER, but this value looks like TEXT.",
|
||||
],
|
||||
"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_compound_bad.claro:8: Type mismatch for field player.score: addition needs NUMBER values, but player.name looks like TEXT.",
|
||||
],
|
||||
"tests/typecheck_object_field_addition_bad.claro": [
|
||||
"tests/typecheck_object_field_addition_bad.claro:8: Type mismatch for field player.score: addition needs NUMBER values, but player.name looks like TEXT.",
|
||||
],
|
||||
"tests/typecheck_object_field_subtraction_bad.claro": [
|
||||
"tests/typecheck_object_field_subtraction_bad.claro:8: Type mismatch for field player.score: subtraction needs NUMBER values, but player.name looks like TEXT.",
|
||||
|
||||
Reference in New Issue
Block a user