[fpc-pascal] FPC 2.4.4 - Error: Illegal type conversion: "Set of TMySet" to "Byte" ... and vice versa
ffred69 at gmail.com
Thu Oct 13 11:42:14 CEST 2011
I am trying to compile my code which is compatible with Delphi and FPC
2.5.1+, but when I try to compile on Mac OS X with 2.4.4 I have error
Error: Illegal type conversion: "Set of TMyEnum" to "Byte"
Error: Illegal type conversion: "Byte" to "Set of TMyEnum"
The code is following:
type TMyEnum = (meFirst, meSecond);
type TMyEnumSet = set of TMyEnum;
b := byte (myEnum);
myEnum := TMyEnumSet(b);
What is wrong on this for 2.4.4?
More information about the fpc-pascal