Opened 12 years ago

Last modified 6 years ago

#2365 closed defect

Record cannot be set by constructor due to incompatible vector sizes — at Initial Version

Reported by: c.schulze@… Owned by: probably noone
Priority: high Milestone: 2.0.0
Component: New Instantiation Version: 1.9.0Beta
Keywords: Cc:

Description

model emptyVector1

record R

parameter Integer i = 2;
parameter Real x[i]=zeros(i);

end R;
R r = R(i = 0);

end emptyVector1;

The call to the record constructor should enable the definition of r. But here the size of r.x is [2] and in the constructor [0]. -> incompatible sizes... (OMC r15030)

Change History (0)

Note: See TracTickets for help on using tickets.