Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2003-05

Bug in nested functions

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dimitry Sibiryakov

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.

Reply by email