﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1286	Wrong error message from the compiler when trying to cast from real to integer	Adrian Pop	Adrian Pop	"Here is the execution trace:
{{{
adrpo@kafka ~/dev/OpenModelica/build/bin
$ cat > IntegerReal.mo
package X
  constant Integer x = 1.0;
end X;
model A
   Integer k = X.x;
end A;

adrpo@kafka ~/dev/OpenModelica/build/bin
$ ./omc.exe IntegerReal.mo
Error processing file: IntegerReal.mo
Error: Variable X.x not found in scope A
# Error encountered! Exiting...
# Please check the error message and the flags.
Execution failed!
}}}


The compiler should not fail with this error message, it should tell you that it cannot covert 1.0 into Integer x!\\"	defect	closed	high	Red October	Instantiation	1.6.0	fixed		Adrian Pop Per Östlund
