﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4895	listArrayLiteral in uniontype constant gives compilation errors	Per Östlund	Martin Sjölund	"Using listArrayLiteral causes incorrect code to be generated in cases such as this:
{{{#!mo
package P
  uniontype UT1
    record R1
      Integer n;
    end R1;
  end UT1;

  uniontype UT2
    record R2
      array<UT1> ut1;
    end R2;
  end UT2;

  constant UT2 ut2 = UT2.R2(
    listArrayLiteral({})
  );
end P;

function f
  input P.UT2 ut2;
  output array<P.UT1> ut1 = ut2.ut1;
end f;

function test
algorithm
  f(P.ut2);
end test;
}}}
This gives the compilation error:
{{{
<interactive>:31:21: error: use of undeclared identifier '_P'
  omc_f(threadData, _P._ut2);
}}}"	defect	new	high	Future	MetaModelica	v1.13.0-dev-nightly			
