Skip to content

Commit

Permalink
[NF] Add extends test.
Browse files Browse the repository at this point in the history
  • Loading branch information
perost authored and OpenModelica-Hudson committed Jul 2, 2018
1 parent 5b2ac55 commit bfcb389
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions flattening/modelica/scodeinst/Extends5.mo
@@ -0,0 +1,26 @@
// name: Extends5.mo
// keywords:
// status: correct
// cflags: -d=newInst
//
// Checks that the lookup finds the correct element when the component scope has
// the same name as the extended class.
//

model A
Real x;
end A;

model B
extends A;
end B;

model Extends5
B A;
end Extends5;

// Result:
// class Extends5
// Real A.x;
// end Extends5;
// endResult
1 change: 1 addition & 0 deletions flattening/modelica/scodeinst/Makefile
Expand Up @@ -302,6 +302,7 @@ Extends1.mo \
Extends2.mo \
Extends3.mo \
Extends4.mo \
Extends5.mo \
ExtendConnector1.mo \
ExtendImport1.mo \
ExtendImport2.mo \
Expand Down

0 comments on commit bfcb389

Please sign in to comment.