Skip to content

Generics class type expected, but got "<erroneous type>"

Original Reporter info from Mantis: hnb
  • Reporter name: Maciej Izak

Description:

I can't compile attached code (in Delphi XE2 it's ok):

{$mode delphi}{$H+}

type
  TA<T> = class
  end;

  TB<T> = class
  public
    type
      TA = class(TA<T>)
      end;
  end; 

Mantis conversion info:

  • Mantis ID: 24285
  • Version: 2.7.1
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information