Opened 10 years ago

Last modified 10 years ago

#3380 closed defect

Save bug with replaceable — at Version 1

Reported by: Arno_Epsilon <acolleoni@…> Owned by: Adeel Asghar
Priority: blocker Milestone: 1.9.3
Component: OMEdit Version: trunk
Keywords: Replaceable, Package Cc:

Description (last modified by Martin Sjölund)

I created a model with a replaceable function inside.
When i try to save this model (included in a package with multiple files saving option), the .mo created delete the line "replaceable function ..." in the model.

Here is an example, to be placed in a package with multiple file saving option:

package Test
  function Functiona
    output Real y;
  algorithm
    y := 1;
  end Functiona;

  model Testa
    replaceable function func = Functiona;
    Real y;
  equation
    y = Functiona();
  end Testa;
end Test;

Change History (1)

comment:1 by Martin Sjölund, 10 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.