Fix properties renaming.

This commit is contained in:
2024-06-12 12:31:30 +02:00
parent 27acd6820c
commit 262f0d632a
4 changed files with 18 additions and 7 deletions

View File

@@ -1204,7 +1204,7 @@ create_variable :: (checker : *Semantic_Checker, node : *AST_Node, field_parent
field_access_on_primitive_type(checker, node, find_result.type_variable);
return 0;
} else {
lookup_name : string;
lookup_name : string = variable.typename;
if variable.typename == "properties" {
lookup_name = variable.name;
}