Opened 10 years ago

Closed 10 years ago

#2836 closed defect (fixed)

NFSCodeDependency removes used class

Reported by: Adrian Pop Owned by: Per Östlund
Priority: high Milestone: 1.9.1
Component: Frontend Version: trunk
Keywords: Cc:

Description

After running the dependency on the last class in
this program Modelica.Blocks.Sources.Clock vanishes.

package Modelica
  package Blocks
    package Sources 
      model Clock
        parameter Real offset = 1;
        parameter Real startTime = 2;
      end Clock;
      
      model ExpSine
        parameter Real offset = 3;
        parameter Real startTime = 4;
        parameter Real extra = 5;
      end ExpSine;
    end Sources;
  end Blocks;
end Modelica;

package Bug
  model M1  
    replaceable Modelica.Blocks.Sources.Clock clock;
  end M1;

  model M2  
    extends M1(clock(offset = 10), clock(startTime = 20));
  end M2;

  model M3  
    extends M2(redeclare Modelica.Blocks.Sources.ExpSine clock);
  end M3;
end Bug;

model M  
  extends Bug.M3;
end M;

Change History (3)

comment:1 by Adrian Pop, 10 years ago

Owner: changed from somebody to Per Östlund
Status: newassigned

comment:2 by Per Östlund, 10 years ago

Status: assignedaccepted

comment:3 by Per Östlund, 10 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in r22429.

Note: See TracTickets for help on using tickets.