Changes between Initial Version and Version 3 of Ticket #1749
- Timestamp:
- 2012-08-24T13:48:38Z (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1749
- Property Cc petar, → petar
-
Ticket #1749 – Description
initial v3 1 1 The following model: 2 2 3 {{{model Model1 3 {{{ 4 model Model1 4 5 5 6 Real[3] x; … … 26 27 (y,x):=test(time, time^2); 27 28 28 end Model1;}}} 29 end Model1; 30 }}} 29 31 30 32 produces the following error messages: … … 35 37 odel1.test(time,time ^ 2.0) of (Real, Real[3]) := (Real[3], Real) 36 38 }}} 37 {{{[model1.mo:15:3-15:28:writable] Error: Tuple assignment only allowed when rhs is 39 {{{ 40 [model1.mo:15:3-15:28:writable] Error: Tuple assignment only allowed when rhs is 38 41 function call (in Model1.test(time,time ^ 2.0)) 39 Error: Error occurred while flattening model Model1}}} 42 Error: Error occurred while flattening model Model1 43 }}} 40 44 41 45 Clearly, the second error is not true, and it should not be printed. This is a common type of mistake in the compiler that probably originates from the fail semantics of RML combined with unsufficient programming logic ;-)