﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5370	Modelica compiler should issue warnings when clocked equations appear outside of the when equations	anonymous	somebody	"While working with clocked equations I found that its to easy to turn continuous equations into clocked ones by mistake due to clock inference.

I think it would be much easy to debug such situations if Modelica compiler print warning for synchronous equations appearing outside of the clocked when equations, except for connect equations and equations with synchronous sample operator.


{{{
#!modelica
model Example
  Real x, y, z;
equations
  x = sample(time, Clock(0.1)); //no warnings
  when Clock()
    y = x;
  end when;
  z = z; // print warning
end Example;
}}}
"	discussion	new	high	Future	Frontend			synchronous	
