Add support for anonymous functions

Issue #29 closed
Former user created an issue
function TValidator.Foo(): TRuleRequiredFunc;
begin
  Result := TRuleRequiredFunc.Create();
  Result.Func :=
    procedure(const DataSet: TData<carret>Set; const Field: TField; out Error: TValidationError; var Required: Boolean) // go to definition is not working 
    begin
      if (DataSet.<carret>) //autocomplete is not working  
    end;
end;

Comments (4)

  1. Christopher Wosinski repo owner

    Can TDataSet be resolved outside the anonymous procedure? This should work generally.

  2. Log in to comment