Opened 5 years ago
Last modified 5 years ago
#5535 new defect
Inheritence of classes with same elements results in doubling
Reported by: | Sven.Baetzing@… | Owned by: | adeas31 |
---|---|---|---|
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)
Change History (2)
Changed 5 years ago by Sven.Baetzing@…
comment:1 Changed 5 years ago by casella
- Milestone changed from Future to 2.0.0
- Priority changed from high to blocker
See also #4809. Probably two related issues.
test package