Opened 4 years ago

Closed 4 years ago

#4990 closed defect (fixed)

Evaluation of clall to function with duplicate inputs

Reported by: Jesper Mattsson Owned by: Jesper Mattsson
Priority: major Milestone: 2.0.x
Component: Modelica/FrontEnd Version: trunk
Keywords: Cc:


When you have two functions:

function f1
  input Real x;
  output Real y;
end f1;

function f2
  extends f1;
  input Real x;
  output Real y;
end f2;

Then while constant evaluating f2 in the instance tree, then the value of the argument is saved on the x declared in f1, but lookup of any access in the algorithm gives the one in f2, and is thus evaluated to unknown.

Change History (1)

comment:1 Changed 4 years ago by Jesper Mattsson

Resolution: fixed
Status: newclosed


Fixed evaluation of functions with inputs and/or outputs duplicated through inheritance.

Note: See TracTickets for help on using tickets.