Opened 6 years ago

Last modified 6 years ago

#5535 new defect

Inheritence of classes with same elements results in doubling

Reported by: Sven.Baetzing@… Owned by: Adeel Asghar
Priority: blocker Milestone: 2.0.0
Component: OMEdit Version: v1.14.0-dev-nightly
Keywords: Cc:

Description

If a class gets inherited by extends clause, which have the same element (e.g. parameter, with exactly the same name) the parameter appears twice in the dialog of the flattened enclosing class.

Same case if a model extends two base classes with same elements.
See attached test package for minimal example.

As far as I know (see ModelicaSpec 3.4 chapter 7.1 Inheritance—Extends Clause)
only the first element in order is kept, rest will be ignored.

thank you in advance.

Attachments (1)

DisplayErrorInheritence.zip (13.2 KB ) - added by Sven.Baetzing@… 6 years ago.
test package

Download all attachments as: .zip

Change History (2)

by Sven.Baetzing@…, 6 years ago

Attachment: DisplayErrorInheritence.zip added

test package

comment:1 by Francesco Casella, 6 years ago

Milestone: Future2.0.0
Priority: highblocker

See also #4809. Probably two related issues.

Note: See TracTickets for help on using tickets.