Changes between Initial Version and Version 3 of Ticket #1749


Ignore:
Timestamp:
2012-08-24T13:48:38Z (13 years ago)
Author:
Martin Sjölund
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1749

    • Property Cc petar, → petar
  • Ticket #1749 – Description

    initial v3  
    11The following model:
    22
    3 {{{model Model1
     3{{{
     4model Model1
    45 
    56Real[3] x;
     
    2627  (y,x):=test(time, time^2);
    2728
    28 end Model1;}}}
     29end Model1;
     30}}}
    2931
    3032produces the following error messages:
     
    3537odel1.test(time,time ^ 2.0) of (Real, Real[3]) := (Real[3], Real)
    3638}}}
    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
    3841 function call (in Model1.test(time,time ^ 2.0))
    39 Error: Error occurred while flattening model Model1}}}
     42Error: Error occurred while flattening model Model1
     43}}}
    4044
    4145Clearly, 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 ;-)