Opened 10 years ago

Closed 10 years ago

#2836 closed defect (fixed)

NFSCodeDependency removes used class

Reported by: adrpo Owned by: perost
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 Changed 10 years ago by adrpo

  • Owner changed from somebody to perost
  • Status changed from new to assigned

comment:2 Changed 10 years ago by perost

  • Status changed from assigned to accepted

comment:3 Changed 10 years ago by perost

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

Fixed in r22429.

Note: See TracTickets for help on using tickets.