Opened 4 years ago

#6163 new defect

Constrainedby clause not verified by the NF

Reported by: Francesco Casella Owned by: Per Östlund
Priority: high Milestone: 2.1.0
Component: New Instantiation Version:
Keywords: Cc:

Description

Consider the attached test package. The Component model is invalid, because it calls function fa which is contained in the default AdvancedMedium package, but is not defined in the constraining class BaseMedium. Unfortunately, Component is checked successfully.

This is too bad, because SystemBroken should be fine, according to the constraining class clause. In fact, it is broken because Component is not valid in the first place.

The NF should eventually check that the models are valid under the constraining class clause, and report an error if they aren't.

Attachments (1)

TestConstrainedBy.mo (830 bytes ) - added by Francesco Casella 4 years ago.

Download all attachments as: .zip

Change History (1)

by Francesco Casella, 4 years ago

Attachment: TestConstrainedBy.mo added
Note: See TracTickets for help on using tickets.