Why are TGeneric<Base> and TGeneric incompatible types?

后端 未结 2 1231
感动是毒
感动是毒 2020-12-03 14:43

I have started using of generics in Delphi 2010 but I have a problem when compiling this piece of code:

TThreadBase = class( TThread )
...
end;

TThreadBaseL         


        
2条回答
  •  孤城傲影
    2020-12-03 15:11

    The type

    TList 
    

    is not the parent type of

    TList 
    

    Generics can't be used that way.

提交回复
热议问题