﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2369	Unwanted modification of the Modelica code when the text is regenerated	anonymous	somebody	"Example:

{{{
model A
  Real unwrapped;
  parameter Real phi = 1;
equation
  (,unwrapped) = Modelica.Electrical.Machines.SpacePhasors.Functions.ToPolar({Modelica.Math.cos(phi),Modelica.Math.sin(phi)});
end A;
}}}

Go to the text view in OpenModelica and check model (works fine). Now save the model. When you save it, an underscore is added:

{{{
model A
  Real unwrapped;
  parameter Real phi = 0;
equation
  (_,unwrapped) = Modelica.Electrical.Machines.SpacePhasors.Functions.ToPolar({Modelica.Math.cos(phi),Modelica.Math.sin(phi)});
end A;
}}}

Performing check model with this code generates the error ""Variable _ not found in scope A"". 

"	defect	closed	blocker	1.9.0	Frontend	trunk	fixed		
