﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2091	reinit(der(x), ...) should give better error message	Peter Aronsson	somebody	"Validating this model:

{{{
model bouncingball
  Real y;
  Real dery13;
initial equation 
  y=5;
  der(y)=0;
equation 
  der(dery13)=-9.81;
  when {y < 0,y > 0} then
    reinit(der(y), (-0.95)*der(y));
  end when;
  dery13=der(y);
end bouncingball;
}}}
gives this error message:

{{{
Error: No matching function found for reinit in component <NO COMPONENT>
Error: Class reinit not found in scope bouncingball.
Error: Error occured while flattening model bouncingball
}}}
A more helpful message would be ""Error: The first argument of reinit must be a variable of type Real or an array of such variables."""	defect	closed	high	2.0.0	Frontend	trunk	fixed		Lennart Ochel
