You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: OMCompiler/Compiler/FrontEnd/InstMeta.mo
+17-10Lines changed: 17 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -57,31 +57,38 @@ public function fixUniontype
57
57
algorithm
58
58
outType := match (inState, inClassDef)
59
59
local
60
+
Absyn.Path p, p2, utPathOfRestriction, utPath;
60
61
Boolean isSingleton;
61
-
Absyn.Path p,p2;
62
+
DAE.EvaluateSingletonType singletonType;
63
+
FCore.Graph env_1;
64
+
SCode.Element c;
65
+
String name;
62
66
list<Absyn.Path> paths;
63
67
list<DAE.Type> typeVarsTypes;
64
68
list<String> names, typeVars;
65
-
DAE.EvaluateSingletonType singletonType;
66
-
SCode.Element c;
67
-
FCore.Graph env_1;
68
-
69
69
case (ClassInf.META_UNIONTYPE(typeVars=typeVars), SCode.PARTS())
70
70
algorithm
71
+
utPath := inState.path;
71
72
p :=AbsynUtil.makeFullyQualified(inState.path);
72
-
names :=SCodeUtil.elementNames(list(e for e guard match e caseSCode.CLASS(restriction=SCode.R_METARECORD()) then true; elsefalse; end match in inClassDef.elementLst));
0 commit comments