Show: Object Pascal C++
Display Preferences

E2475 '%s' directive not allowed in record helper type (Object Pascal)

From Appmethod Topics
Jump to: navigation, search

Go Up to Error and Warning Messages (Object Pascal) Index

This happens when using directives that are not allowed for records in helper methods for those records.

program E2475;
 
{$APPTYPE CONSOLE}
 
uses
  SysUtils;
 
type
 aRec = record
 end;
 
 aRecHelper = record helper for aRec
    function IsBool: Boolean; override; //E2475  Fix : use classes instead
                                       // do not use the override directive
 end;
 
function aRecHelper.IsBool: Boolean;
begin
  //
end;
begin
  //
end.
Personal tools
In other languages