Opened 12 years ago

Last modified 7 years ago

#1916 closed defect

Print an error for nonexisting redeclared modifier elements in extends. — at Version 1

Reported by: Per Östlund Owned by: Per Östlund
Priority: low Milestone: 1.13.0
Component: New Instantiation Version: trunk
Keywords: Cc:

Description (last modified by Per Östlund)

We should print an error if a redeclared modifier element can't be found in an extended class, such as this:

model M
end M;

model NonexistentRedeclareModifier2
  extends M(redeclare Real x);
end NonexistentRedeclareModifier2;

But the dependency analysis thinks that the redeclare modifier is unused, so it just removes it.

Change History (1)

comment:1 by Per Östlund, 12 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.