Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated cseTestCall1.mos, which used an illegal function call. Added a test case for tuples not on the LHS.
- Loading branch information
Showing
3 changed files
with
19 additions
and
2 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,16 @@ | ||
// status: incorrect | ||
// Based on ticket:4007 | ||
|
||
model TupleError | ||
Real a = (0,25)*(0,25); | ||
end TupleError; | ||
// Result: | ||
// Error processing file: TupleError.mo | ||
// [flattening/modelica/algorithms-functions/TupleError.mo:5:3-5:25:writable] Error: Tuple expressions may only occur on the left side of an assignment or equation with a single function call on the right side. Got the following expression: (0, 25). | ||
// Error: Error occurred while flattening model TupleError | ||
// | ||
// # 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