﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1041	Unnecessary and unclear messages (from MathCore)	krsta	krsta	"The below model returns strange and very long error messages when using check model. Isn't it possible to help the user with fewer messages?


{{{
model foo ""This is a sample model""
public 
  parameter Real yMin=2,yMax=10;
  parameter Real y0[:]=zeros(size(k, 1));
  parameter Boolean signal=time > 0.5,setSignal=true;

equation 
  assert(yMin <= yMax);
end foo;
}}}


''Implementation Note: The reason for several error messages is that when type-checking the expression 
{{{
zeros(size(k, 1))
}}}
, it first can not find the identifier k (1st message), which results in that it cannot determine the type of size (k,1) (2nd message) and thus can not determine type of zeros(size(k,1)) (3rd message). The solution should probably prevent the 2nd and 3rd message from being printed (in some clever way).
''"	defect	closed	critical				fixed		krsta
