You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To Reproduce
This came up while porting a project and the MRE boils down to this:
FUNCTION main: DINT
VAR
r: REAL;
i: INT;
END_VAR
i := + 6; // this is fine
r := + r; // hits `unimplemented!()` in `expression_generator.rs:400`
r := + 6.0; // same as above
END_FUNCTION
Expected behavior
the expression + 6.0 behaving just like 6.0
The text was updated successfully, but these errors were encountered:
Describe the bug
Unary expressions with an explicit
+
operator on REALs will panic inrusty/src/codegen/generators/expression_generator.rs
Line 400 in b357a05
The same expression with INTs is fine.
To Reproduce
This came up while porting a project and the MRE boils down to this:
Expected behavior
the expression
+ 6.0
behaving just like6.0
The text was updated successfully, but these errors were encountered: