[fpc-devel]Bug in nested functions

Dimitry Sibiryakov SD at topol.udm.net
Wed May 28 08:04:08 CEST 2003


  Hi, All!

  There is still a bug in current 1.1 CVS tree with nested functons. 
Test case:

program Pr;

Function Test1(a : String) : String;

 Function Test2(b : String) : String;
  begin
   Result := 'There is ';
  end;

begin
 Result := Test2('a bug')+a;
end;

begin
 WriteLn(Test1('no bug'));
end.

   SY, Dimitry Sibiryakov.






More information about the fpc-devel mailing list