Opened 11 years ago
Closed 11 years ago
#2369 closed defect (fixed)
Unwanted modification of the Modelica code when the text is regenerated
Reported by: | anonymous | Owned by: | somebody |
---|---|---|---|
Priority: | blocker | Milestone: | 1.9.0 |
Component: | Frontend | Version: | trunk |
Keywords: | Cc: |
Description
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".
Note:
See TracTickets
for help on using tickets.
Fixed in r17405