﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2307	Using cat in loops gives strange results	joafa554	probably noone	"
{{{
function toFlatArray
    input Real[:,:] m;
    output Real[:] arr := fill(0, 0);
algorithm
    for i in 1:size(m, 1) loop
        arr := cat(1, arr, m[i,:]);
    end for;
end toFlatArray;
}}}

The resulting array only contains the last part for some reason:
{{{
>> toFlatArray({{1,2,3},{4,5,6}})
{4.0,5.0,6.0}
}}}

Replacing the for loop with a while loop yield the same result.
"	defect	closed	low	1.16.0	New Instantiation	trunk	fixed		
