We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1749c2e commit a33d4f3Copy full SHA for a33d4f3
Compiler/NFFrontEnd/NFInst.mo
@@ -638,7 +638,23 @@ algorithm
638
then
639
();
640
641
- else ();
+ // If a class has an instance of a encapsulating class, then the encapsulating
642
+ // class will have been fully instantiated to allow lookup in it. This is a
643
+ // rather uncommon case hopefully, so in that case just reinstantiate the class.
644
+ case (Class.INSTANCED_CLASS(), _)
645
+ algorithm
646
+ node := InstNode.replaceClass(Class.NOT_INSTANTIATED(), node);
647
+ node := expand(node);
648
+ node := instClass(node, modifier, attributes, parent);
649
+ then
650
+ ();
651
+
652
+ else
653
654
+ assert(false, getInstanceName() + " got unknown class.");
655
656
657
658
end match;
659
end instClass;
660
0 commit comments