tb0044.pp 362 B

12345678910111213141516171819202122
  1. { Old file: tbs0050.pp }
  2. { can't set a function result in a nested procedure of a function OK 0.99.7 (PM) }
  3. function Append : Boolean;
  4. procedure DoAppend;
  5. begin
  6. Append := true;
  7. end;
  8. begin
  9. Append:=False;
  10. DoAppend;
  11. end;
  12. begin
  13. If not Append then
  14. begin
  15. Writeln('TBS0050 fails');
  16. Halt(1);
  17. end;
  18. end.