feat: diagnose object field assignment before NEW

This commit is contained in:
Hermes Agent
2026-08-07 03:02:55 +00:00
parent 68104bd25a
commit c41d2555c9
7 changed files with 30 additions and 4 deletions
+3
View File
@@ -65,6 +65,9 @@ EXPECTED = {
"tests/typecheck_object_field_check_type_unknown_object_bad.claro": [
"tests/typecheck_object_field_check_type_unknown_object_bad.claro:5: Object player is not known yet. Create it with NEW ClassName player before checking player.score.",
],
"tests/typecheck_object_field_unknown_object_bad.claro": [
"tests/typecheck_object_field_unknown_object_bad.claro:5: Object player is not known yet. Create it with NEW ClassName player before setting player.score.",
],
}
EXPECTED_OK = [