File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
OMCompiler/Compiler/NFFrontEnd Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -5254,6 +5254,13 @@ public
52545254 then Expression . bindingExpMap(recordExp,
52555255 function recordElement(elementName = elementName));
52565256
5257+ case SUBSCRIPTED_EXP ()
5258+ algorithm
5259+ outExp := recordElement(elementName, recordExp. exp);
5260+ then
5261+ SUBSCRIPTED_EXP (outExp, recordExp. subscripts,
5262+ Type . lookupRecordFieldType(elementName, recordExp. ty));
5263+
52575264 case EMPTY () then fail();
52585265
52595266 else
Original file line number Diff line number Diff line change @@ -982,6 +982,8 @@ public
982982 fieldType := match recordType
983983 case COMPLEX ()
984984 then InstNode . getType(Class . lookupElement(name, InstNode . getClass(recordType. cls)));
985+ case ARRAY ()
986+ then liftArrayLeftList(lookupRecordFieldType(name, recordType. elementType), recordType. dimensions);
985987 end match;
986988 end lookupRecordFieldType;
987989
You can’t perform that action at this time.
0 commit comments