test: add object field unknown TEXT diagnostic fixture

This commit is contained in:
Hermes Agent
2026-06-24 03:09:16 -06:00
parent 5a63e76a44
commit 2590208f19
8 changed files with 30 additions and 4 deletions
+3
View File
@@ -38,6 +38,9 @@ EXPECTED = {
"tests/typecheck_object_field_unknown_bad.claro": [
"tests/typecheck_object_field_unknown_bad.claro:6: Object Player has no field level. Check the field name or add HAS level NUMBER to the class.",
],
"tests/typecheck_object_field_unknown_text_bad.claro": [
"tests/typecheck_object_field_unknown_text_bad.claro:6: Object Player has no field nickname. Check the field name or add HAS nickname TEXT to the class.",
],
}
EXPECTED_OK = [