fpc/bugs/bug0217.pp
peter b6f3ac45bf - 201,206
+ 217-221
1999-02-16 00:43:19 +00:00

19 lines
340 B
ObjectPascal

{$ifdef fpc}{$mode tp}{$endif}
type tmpproc=function:longint;
function a:longint;{$ifndef fpc}far;{$endif}
begin
a:=-1;
end;
procedure tmp(a: tmpproc);
begin
writeln(a); { "Cannot read/write variables of this type", TP kan dit
wel? }
end;
begin
tmp(a); { de TP manier , in FPC moet dit zijn tmp(@a); }
end.