Opened 10 years ago

Closed 4 years ago

#3146 closed defect (fixed)

Impossible to use "redeclare" in an "extends"

Reported by: rolandrenier@… Owned by: somebody
Priority: high Milestone: 1.16.0
Component: New Instantiation Version: trunk
Keywords: Cc: Adrian Pop

Description (last modified by Per Östlund)

model A1
 replaceable package Medium = Modelica.Media.Interfaces.PartialMedium;
end A1;

model A2
 A1 a1;
end A2;

model A3
 extends A2(a1(redeclare package Medium = Modelica.Media.Air.ReferenceAir.Air_ph));
end A3;

The model A3 does not run and print this message error:
"Error: Variable a1: In modifier redeclare(Medium), class or component Medium not found in <test2.A1$a1>."

Version: 1.9.1 r22929

Change History (2)

comment:1 by Per Östlund, 10 years ago

Cc: Adrian Pop added
Component: OMEditFrontend
Description: modified (diff)
Owner: changed from Adeel Asghar to somebody

comment:2 by Per Östlund, 4 years ago

Component: FrontendNew Instantiation
Milestone: Future1.16.0
Resolution: fixed
Status: newclosed

Still an issue in the old frontend, but works fine with the new.

Note: See TracTickets for help on using tickets.