Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Belonging to [master]: - OpenModelica/OMCompiler#2547 - OpenModelica/OpenModelica-testsuite#993
- Loading branch information
1 parent
5b2ac55
commit bfcb389
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters