test: cover typed text object-field assignments

This commit is contained in:
Hermes Agent
2026-09-20 12:48:21 +00:00
parent b30cf44b04
commit e3f1a53130
4 changed files with 11 additions and 2 deletions
+3
View File
@@ -257,6 +257,9 @@ EXPECTED = {
"tests/typecheck_object_field_typed_bad.claro": [
"tests/typecheck_object_field_typed_bad.claro:6: Type mismatch for field player.score: expected NUMBER, but this value looks like TEXT.",
],
"tests/typecheck_object_field_typed_text_bad.claro": [
"tests/typecheck_object_field_typed_text_bad.claro:6: Type mismatch for field player.name: expected TEXT, but this value looks like NUMBER.",
],
"tests/typecheck_object_field_after_method_bad.claro": [
"tests/typecheck_object_field_after_method_bad.claro:10: Type mismatch for field player.score: expected NUMBER, but this value looks like TEXT.",
],