Opened 10 years ago

Closed 10 years ago

#2503 closed defect (fixed)

protected extends is not propagated correctly

Reported by: adrpo Owned by: perost
Priority: high Milestone: 1.9.1
Component: Frontend Version: trunk
Keywords: Cc: nimalk@…, petar

Description (last modified by adrpo)

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 Changed 10 years ago by adrpo

  • Cc nimalk@… added
  • Description modified (diff)
  • Owner changed from adrpo to perost
  • Status changed from new to assigned

comment:2 Changed 10 years ago by adrpo

  • Cc petar added

comment:3 Changed 10 years ago by nimalk@…

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

comment:4 Changed 10 years ago by perost

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in r18496.

Note: See TracTickets for help on using tickets.