The following code fails to compile in Delphi mode but successfully compiles in objfpc mode:

type
 TEnum = (a, b, c);
var
 AValue: TEnum;
 AObject : TObject;
implementation

initialization
 AObject := TObject(AValue);



Could this be supported in the Delphi mode as well?

Thanks,
Sean


_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to