Opened 6 years ago

#5334 new enhancement

Check for wrong annotations

Reported by: casella Owned by: perost
Priority: high Milestone: 2.1.0
Component: New Instantiation Version:
Keywords: Cc:

Description

Wrong annotations are silently ignored by the frontend. They should rather generate errors. Typical test case:

model M
  Real x(start = 1, fixed = true);
equation
  der(x) = -x;
annotation(Experiment(stopTime= 5));
end M;

simulates for 1 second instead of 5, because Experiment should be experiment and stopTime should be StopTime. Unfortunately, the compiler does not complain at all.

Change History (0)

Note: See TracTickets for help on using tickets.