typecheck: diagnose typed unknown object fields

This commit is contained in:
Hermes Agent
2026-09-08 15:23:55 +00:00
parent 299309ed5b
commit 8c3c898af7
6 changed files with 17 additions and 3 deletions
+3
View File
@@ -95,6 +95,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_typed_bad.claro": [
"tests/typecheck_object_field_unknown_typed_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.",
],