RAD Studio Athens

E2598

Go Up to Error and Warning Messages (Delphi)


This occurs whenever a virtual method is declared in helper types.

type
  aRecord = record
  end;
  aHelperRecord = record helper for aRecord
    procedure test; virtual; // issues error: E2598
  end;

You can fix this by either removing the method from the helper type, or by removing the virtual directive from the method.