Changes between Initial Version and Version 2 of Ticket #1731


Ignore:
Timestamp:
2012-08-30T10:11:39Z (12 years ago)
Author:
Martin Sjölund
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1731

    • Property ComponentFrontend
    • Property Milestone1.9.0
    • Property Summary connection generating the wrong equationsConnecting ranges generates wrong equations
  • Ticket #1731 – Description

    initial v2  
    1 {{{model M
     1{{{
     2model M
    23  connector InReal = input Real;
    34  connector OutReal = output Real;
     
    78equation
    89  connect(x,y[2:p+1]);
    9 end M;}}}
     10end M;
     11}}}
    1012
    1113I get:
    12 {{{  x[3] = y[3];
     14{{{
     15  x[3] = y[3];
    1316  x[2] = y[2];
    14   x[1] = y[1];}}}
     17  x[1] = y[1];
     18}}}
    1519
    1620I expected:
    17 {{{  x[3] = y[4];
     21{{{
     22  x[3] = y[4];
    1823  x[2] = y[3];
    19   x[1] = y[2];}}}
     24  x[1] = y[2];
     25}}}