Adds a validation to check if a math operation has incompatible types. For example the following code previously had no validation and as a consequence would panic during codegen.
FUNCTION main : DINT
VAR
x1 : ARRAY[0..2] OF TOD;
x2 : STRING;
END_VAR
x1 + x2;
ADD(x1, x1);
DIV(x1, x2);
SUB(x2, x2);
END_FUNCTION
Adds a validation to check if a math operation has incompatible types. For example the following code previously had no validation and as a consequence would panic during codegen.
Resolves https://github.com/PLC-lang/rusty/issues/1038