Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Give error for a model extending from one of the scopes it's defined in.
- Loading branch information
Showing
3 changed files
with
31 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
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,21 @@ | ||
// name: ExtendsLoop1 | ||
// keywords: | ||
// status: incorrect | ||
// cflags: -d=newInst -i=ExtendsLoop1.M | ||
// | ||
|
||
model ExtendsLoop1 | ||
model M | ||
extends ExtendsLoop1; | ||
end M; | ||
end ExtendsLoop1; | ||
|
||
// Result: | ||
// Error processing file: ExtendsLoop1.mo | ||
// [flattening/modelica/scodeinst/ExtendsLoop1.mo:9:5-9:25:writable] Error: extends ExtendsLoop1 causes an instantiation loop. | ||
// | ||
// # Error encountered! Exiting... | ||
// # Please check the error message and the flags. | ||
// | ||
// Execution failed! | ||
// 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