﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3450	Cyclically dependent parameter error in replaceable function	Markus Dahl	somebody	"Validation of `P.M` in the package below yields the following error in the message browser (but also reports the validation as successful):

   Error: Cyclically dependent constants or parameters found in scope : {x}.

In the `Base` model, changing the modifier `x = x` in the redeclaration of the function to `x = 5` will resolve the error. However those two statements should be equivalent.

Package:
{{{
package P

  function f
    input Real x;
    output Real y;
  algorithm
    y := x + 2;
  end f;

  partial model Base
    replaceable partial function func = f;
  end Base;

  model M
    extends Base(redeclare final function func = f(x = x));
    parameter Real x = 5;
    Real y = func(1);
  end M;

end P;
}}}
"	defect	closed	high	1.19.0	New Instantiation		fixed		
