E2598 Virtual methods not allowed in record helper types (Delphi)

From RAD Studio
Jump to: navigation, search

Go Up to Error and Warning Messages (Delphi)

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

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

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

See Also