﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2802	Some issues with casting in constructor	Vitalij Ruge	somebody	"Consider this example
{{{
package A
  operator record R
    Real x[n];
    parameter Integer n;

    encapsulated operator 'constructor'
      import A.R;

      function fromRealArray
        input Real x[n];
        input Integer n;
        output R result(x = x, n = n);
      algorithm

        annotation(Inline = true);
      end fromRealArray;
    end 'constructor';
  end R;

  model B
    R r = R(x = {1, 2}, n = 2);
    //R r = R(x = {1.0, 2}, n = 2); //work
  end B;
end A;
}}}

we get a ""Type mismatch"".
"	defect	closed	normal	1.19.0	Frontend	trunk	fixed		
