feat: add object field unknown-field diagnostic

This commit is contained in:
Hermes Agent
2026-06-23 03:06:22 -06:00
parent 5914524ad6
commit 5a63e76a44
8 changed files with 42 additions and 5 deletions
+3
View File
@@ -35,6 +35,9 @@ EXPECTED = {
"tests/typecheck_object_field_yesno_bad.claro": [
"tests/typecheck_object_field_yesno_bad.claro:6: Type mismatch for field player.ready: expected YESNO, but this value looks like TEXT.",
],
"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.",
],
}
EXPECTED_OK = [