fpc/tests/tbs/tb0044.pp
2000-11-30 22:38:14 +00:00

23 lines
362 B
ObjectPascal

{ Old file: tbs0050.pp }
{ can't set a function result in a nested procedure of a function OK 0.99.7 (PM) }
function Append : Boolean;
procedure DoAppend;
begin
Append := true;
end;
begin
Append:=False;
DoAppend;
end;
begin
If not Append then
begin
Writeln('TBS0050 fails');
Halt(1);
end;
end.