E2520 Result type of operator '%s' must be Boolean type (Delphi)

From RAD Studio
Jump to: navigation, search

Go Up to Error and Warning Messages (Delphi)

This occurs when the return type is expected to be Boolean but it's not.


program E2520;
{E2517 Operator '%s' must take %d parameter(s)}
{$APPTYPE CONSOLE}

uses
  SysUtils;

type
  TGenRec = record
    class operator False( b: TGenRec): integer; //E2520
end;
begin

end.

See Also