Opened 13 years ago

Closed 4 years ago

Last modified 4 years ago

#1711 closed defect (fixed)

Check for illegal each

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: high Milestone: 1.16.0
Component: New Instantiation Version:
Keywords: Cc: Martin Sjölund, Adrian Pop

Description (last modified by Martin Sjölund)

Should return an error n is not an array declaration:

model N
  Real r;
end N;

model M
  N n(each r = 1.0);
end M;

Change History (4)

comment:1 by Martin Sjölund, 12 years ago

Component: Backend
Description: modified (diff)

comment:2 by Dietmar Winkler, 9 years ago

Milestone: Future

comment:3 by Per Östlund, 4 years ago

Component: BackendNew Instantiation
Resolution: fixed
Status: newclosed

The new frontend gives a warning in this case, and an error if --strict is used.

comment:4 by Francesco Casella, 4 years ago

Milestone: Future1.16.0
Note: See TracTickets for help on using tickets.