Opened 11 years ago

Closed 11 years ago

#2503 closed defect (fixed)

protected extends is not propagated correctly

Reported by: Adrian Pop Owned by: Per Östlund
Priority: high Milestone: 1.9.1
Component: Frontend Version: trunk
Keywords: Cc: nimalk@…, Peter Aronsson

Description (last modified by Adrian Pop)

model myPendulum
 protected
 extends Pendulum;
 public
 Real phi = revolute.phi
end myPendulum;

Only phi should be public.
This is useful for MathCore so that only phi ends up in the result file.

Change History (4)

comment:1 by Adrian Pop, 11 years ago

Cc: nimalk@… added
Description: modified (diff)
Owner: changed from Adrian Pop to Per Östlund
Status: newassigned

comment:2 by Adrian Pop, 11 years ago

Cc: Peter Aronsson added

comment:3 by nimalk@…, 11 years ago

model myPendulum  
protected  extends Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum;  
public  Real phi = rev.phi; 
end myPendulum;

comment:4 by Per Östlund, 11 years ago

Resolution: fixed
Status: assignedclosed

Fixed in r18496.

Note: See TracTickets for help on using tickets.