Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- activate two class extends tests (classextends3.mo still has issues) - add a new test PropagateExtends.mo (the NF does bad instantiation on it)
- Loading branch information
1 parent
5ccc2d5
commit 2c4425c
Showing
4 changed files
with
44 additions
and
3 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
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,39 @@ | ||
// name: PropagateExtends.mo | ||
// keywords: | ||
// status: correct | ||
// | ||
|
||
model A | ||
Real x; | ||
Real y; | ||
end A; | ||
|
||
model B | ||
extends A; | ||
end B; | ||
|
||
model C | ||
extends B; | ||
end C; | ||
|
||
model D | ||
extends C(x(unit="kg")); | ||
end D; | ||
|
||
model E | ||
extends D(x(start = 1), y(start=1)); | ||
end E; | ||
|
||
model F | ||
E e; | ||
D d; | ||
end F; | ||
|
||
// Result: | ||
// class F | ||
// Real e.x(unit = "kg", start = 1.0); | ||
// Real e.y(start = 1.0); | ||
// Real d.x(unit = "kg"); | ||
// Real d.y; | ||
// end F; | ||
// 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
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