[fpc-devel] Illegal type conversion: "<enumeration type>" to	"TObject"
    Michael Van Canneyt 
    michael at freepascal.org
       
    Thu Jul 17 13:52:45 CEST 2008
    
    
  
On Thu, 17 Jul 2008, Florian Klaempfl wrote:
> Sean McIlwain schrieb:
> > 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?
> 
> Please submit a bug report.
Eh ? 
As far as I'm concerned this should not compile in Objfpc mode as well ?
Michael.
    
    
More information about the fpc-devel
mailing list