E2537 DEFAULT standard function expects a type identifier (Delphi)

From RAD Studio
Jump to: navigation, search

Go Up to Error and Warning Messages (Delphi)

This occurs when using a method instead of a type with the Default function.


program E2537;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
    p : Pointer;

procedure NotType;
  begin
  end;

begin
  p := Default(NotType);
end.