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#2822 - OpenModelica/OpenModelica-testsuite#1088
- Loading branch information
1 parent
e861b96
commit db3e5da
Showing
3 changed files
with
38 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,16 @@ | ||
// name: ClassAttributes3 | ||
// keywords: | ||
// status: correct | ||
// cflags: -d=newInst | ||
// | ||
|
||
model ClassAttributes3 | ||
type InputReal = input Real; | ||
input InputReal x; | ||
end ClassAttributes3; | ||
|
||
// Result: | ||
// class ClassAttributes3 | ||
// input Real x; | ||
// end ClassAttributes3; | ||
// 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// name: ClassAttributes3 | ||
// keywords: | ||
// status: incorrect | ||
// cflags: -d=newInst | ||
// | ||
|
||
model ClassAttributes4 | ||
type InputReal = input Real; | ||
output InputReal x; | ||
end ClassAttributes4; | ||
|
||
// Result: | ||
// Error processing file: ClassAttributes4.mo | ||
// [flattening/modelica/scodeinst/ClassAttributes4.mo:9:3-9:21:writable] Error: Invalid type prefix 'output' on component x, due to existing type prefix 'input'. | ||
// | ||
// # 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