Opened 14 years ago

Closed 10 years ago

#1439 closed defect (fixed)

Inner/outer replaceable does not work

Reported by: rfalkeborn Owned by: rfalkeborn
Priority: high Milestone:
Component: Frontend Version:
Keywords: Cc: rfalkeborn

Description

Checking model E gives an error (too few equations). However, since D is redeclared as B it should work (I think). Dymola simulates the model with no problem.

package innerOuterError
  partial block A
    input Real u;
    output Real y;
  end A;

  block B
    extends A;
  equation 
    y=u;
  end B;

  model C
    outer replaceable block D= A;
    D d;
    Real y;
    Real u;
  equation 
    u=d.u;
    y=d.y;
  end C;

  model E
    C c;
    inner replaceable block D= B extends A;
  equation 
    c.u=1;
  end E;

end innerOuterError;

Change History (3)

comment:2 by Per Östlund, 14 years ago

Almost a duplicate of [BUG:1428], since functions are a type of classes.

comment:3 by Per Östlund, 10 years ago

Cc: rfalkeborn, → rfalkeborn
Component: Frontend
Resolution: fixed
Status: newclosed

This seems to work now from what I can see.

Note: See TracTickets for help on using tickets.