﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1407	sample() with variable as argument	rfalkeborn	rfalkeborn	"The model

{{{model illegalSampleModel
Real z(start = 1);

algorithm
when sample(0,z) then
	z:= z+1;
end when;
end illegalSampleModel;
}}}

is not allowed in Modelica since the specification only allows parameter expressions as input to sample(). However, checking it produces no warning or error message. When checking the model, this should be detected and an appropriate warning or error message produced (delay() with variable as second argument produces a warning message). Also, sample(1,z) should give a similar error/warning message.

If this is fixed and gives an error message (which to me seems more logical?), the warning for delay(x,x) should probably be changed to an error too."	defect	closed	high				fixed		rfalkeborn
