E2475 '%s' 指令はレコード ヘルパ型では使用できません(Delphi)

提供: RAD Studio
移動先: 案内検索

エラーと警告のメッセージ(Delphi) への移動

このエラーは、レコードで使用できない指令を、レコードのヘルパ メソッドで使用している場合に発生します。


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.