Is overriding methods from specialized generic classes supported in any way? I 
tried the following below but it doesn’t seem to work. 

type    
  generic TList<T> = class (TObject)
                procedure Add (value: T); virtual;
        end;


type    
        TObjectListAbstract = specialize TList<TObject>;
  TObjectList = class (TObjectListAbstract)
                procedure Add (value: T); override;
        end;    




Regards,
        Ryan Joseph

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to