﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2846	Bad handling of local derived function with input names the same as modifiers	Adrian Pop	somebody	"Flattening this model:
{{{#!mo
model X
  parameter Real x = 1;
  parameter Real y = 2;
  
  function f = derivedFunction(x = x, y = y);
  
  function derivedFunction
    input Real a;
    input Real x;
    input Real y;
    output Real z;
  algorithm
     z := x + y + a;
  end derivedFunction;
  
  parameter Real u = f(3);
end X;
}}}
will get you the desired result via dll compilation but also an error message from function interpretation:
{{{
[LocalFunction.mo:5:3-5:45:writable] Error: Cyclically dependent constants or parameters found in scope : {x}, {y}.
}}}
I think this should be fixed by using the evaluated parameter values as bindings in function and not the actual parameter names. Any other ideas?
Is not really the same scope for the x and y we sent in."	defect	closed	high	1.19.0	New Instantiation	trunk	fixed		
