E2533 Virtual, dynamic and message methods cannot have type parameters (Delphi)

From RAD Studio
Jump to: navigation, search

Go Up to Error and Warning Messages (Delphi)

This occurs when trying to declare a generic method as virtual, dynamic, or message.


program E2533;

{$APPTYPE CONSOLE}

uses
  SysUtils;
type
  TC = class
    function f<T>:T; virtual; abstract; //E2533
  end;

begin

end.