AV when passing wrong parameter

Issue #51 resolved
Christian Budde created an issue

The below code crashes (if 'overload') is present.

type
  TOptions = record
    Foo: String;
  end;

type
  TTest = class
    procedure SomeFunction(Options: TOptions); overload;
  end;

procedure TTest.SomeFunction(Options: TOptions);
begin
end;

var Test := TTest.Create;
Test.SomeFunction(lambda end);

The crash happens in:

function TRecordSymbol.IsCompatible(typSym : TTypeSymbol) : Boolean;

where 'typSym' is nil.

Comments (2)

  1. Log in to comment