﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2521	Type mismatch on hierarchical matrix	Malte Lenz	Martin Sjölund	"Validating Matrix as defined like this:

{{{
model Vector
  Real x[2];
end Vector;

model Matrix
  Vector v[2];
equation
  v.x = {{1,2},{3,cos(time)}};
end Matrix;
}}}

Results in a compiler bug message:

{{{
""[<interactive>:7:3-7:36:writable] Error: Got type mismatch error, but matching types Real[2, 2].
This is a ***COMPILER BUG***, please report it to https://trac.openmodelica.org/OpenModelica.
Error: Error occurred while flattening model Matrix
""
}}}

Replacing the cos(time) with a 4, makes the validation work.

"	defect	closed	high	1.9.1	Frontend	trunk	fixed		
