Opened 12 years ago

Closed 12 years ago

#1988 closed defect (fixed)

Inner class definition is removed by dependency analysis

Reported by: adrpo Owned by: adrpo
Priority: high Milestone: 1.9.0
Component: Frontend Version: trunk
Keywords: Cc: perost

Description

See this model:

within ;
package Bug
  partial block Interface
    input Real x;
    output Real y;
  end Interface;

  block Impl
    extends Interface;
  equation
    y = 2*x;
  end Impl;

  model A
    outer block R = Interface;
    R r(x = 1);
    Real y = r.y;
  end A;

  model B
    inner block R = Impl;
    A a;
    Real xa(start = 1);
  equation
    der(xa) = a.y;
  end B;
end Bug;

and instantiate Bug.B.

inner block R = Impl;

will be removed.

Change History (2)

comment:1 Changed 12 years ago by adrpo

Hopefully fixed in r14412.

comment:2 Changed 12 years ago by adrpo

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.