bug0217.pp 340 B

123456789101112131415161718
  1. {$ifdef fpc}{$mode tp}{$endif}
  2. type tmpproc=function:longint;
  3. function a:longint;{$ifndef fpc}far;{$endif}
  4. begin
  5. a:=-1;
  6. end;
  7. procedure tmp(a: tmpproc);
  8. begin
  9. writeln(a); { "Cannot read/write variables of this type", TP kan dit
  10. wel? }
  11. end;
  12. begin
  13. tmp(a); { de TP manier , in FPC moet dit zijn tmp(@a); }
  14. end.