﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5992	Singelton uniontypes containing non-singelton uniontypes are not treated as singeltons	John Tinnerholm	John Tinnerholm	"Singelton uniontypes containing a non singleton uniontype is not treated as a singelton: 

{{{
uniontype UT
  record R
    Real RI;
  end R;
  function f
    output Real ro;
  protected
    UT tmpUT = R(1.0);
  algorithm
    ro := tmpUT.RI;
  end f;
  uniontype UT2
    record R1
    end R1;
    record R2
    end R2;
  end UT2;
end UT;
}}}

This is typically not an issue, but it occurs in the new frontend where uniontypes are used at the top level and contains non-singeltons within them. 

Trying to access the component R at the top level currently results in  


{{{
Error: Internal error Types.getMetaRecordFields called on a non-singleton uniontype: UT
}}}
"	defect	closed	high	1.16.0	MetaModelica		fixed		
