feat: diagnose object field assignment before NEW
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user