Opened 16 years ago

Closed 10 years ago

#1072 closed defect (fixed)

Detect modifiers on components declared as outer. (from MathCore)

Reported by: krsta Owned by: krsta
Priority: high Milestone:
Component: Backend Version:
Keywords: Cc: krsta

Description

OpenModelica allows modifiers on components declared as outer. OpenModelica should detect it when checking the model and building as it is not allowed according to the Modelica specification.

model A
  outer parameter Real x = 2; // Should not be allowed!
end A;

model main
  inner parameter Real x;
  A a1;
end main;

Change History (2)

comment:2 by Per Östlund, 10 years ago

Cc: krsta, → krsta
Component: Backend
Resolution: fixed
Status: newclosed

We detect this now, although we give a warning instead of an error (probably because Dymola allows it).

Note: See TracTickets for help on using tickets.