Nested functions - problem with result

Issue #42 resolved
Daniel Roziecki created an issue

Hi,

another problem with nested functions.

unit RecordTest;

interface

type
  TRecSpecialResult = record
  Name: string;
  Id: Integer;
  Result: string;
end;

function test: String;


implementation

function test: String;

  function _test: TRecSpecialResult;
  begin
    result.Result := '';
    result.Id := 12;
  end;

begin
end;

nested2.png

You probably try use result type from root function.

Regards.

Daniel Roziecki

Comments (2)

  1. Log in to comment