Opened 5 years ago

Last modified 5 years ago

#5667 new defect

Arrays of records insufficiently type checked

Reported by: Per Östlund Owned by: Per Östlund
Priority: high Milestone: 2.1.0
Component: New Instantiation Version: v1.14.0-dev-nightly
Keywords: Cc:

Description

The following model fails without a proper error message:

record R
  Real x[:];
end R;

model M
  parameter R r[:] = {R({1, 2, 3}), R({1, 2})};
end M;

Currently only the type of the record class itself is considered when type checking, but in cases such as this the type of the record instances should be used instead.

Change History (1)

comment:1 by Francesco Casella, 5 years ago

Milestone: Future2.1.0
Note: See TracTickets for help on using tickets.