Hello again

Hello again

I have this MCVE: http://pastebin.com/TsKZzyhF

Why are those interface types incompatible? With a hard-cast everything seems to go fine. Am I loosing something here?
http://pastebin.com/TsKZzyhF

Comments

  1. For some odd reason I can't see this post if browsing from Delphi Developers community. I can only reach here if I navigate to my public G+ profile

    ReplyDelete
  2. It's been flagged as spam for moderation, should be up now.

    ReplyDelete
  3. Exactly what Christopher Wosinski said. In Delphi IGeneric is not compatible with IGeneric because for them to be compatible the T parameter would have to be declared as covariant

    ReplyDelete

Post a Comment