E2474 Record type required (Delphi)

From RAD Studio
Jump to: navigation, search

Go Up to Error and Warning Messages (Delphi)

This occurs when using a helper record for a class. Use a helper object of the class type.

program E2474;

{$APPTYPE CONSOLE}

uses
  SysUtils;

type
TClass = class
  //
end;

TClassHelper = record helper for TClass // E2474 
                                         //(use class helper for TClass instead)
end;

begin
  {E2474 Record type required}
end.