Opened 12 years ago

Closed 12 years ago

#1988 closed defect (fixed)

Inner class definition is removed by dependency analysis

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

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 by Adrian Pop, 12 years ago

Hopefully fixed in r14412.

comment:2 by Adrian Pop, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.