mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 06:08:22 +02:00
22 lines
291 B
ObjectPascal
22 lines
291 B
ObjectPascal
{ Old file: tbs0257.pp }
|
|
{ problem with procvars in tp mode OK 0.99.11 (PM) }
|
|
|
|
{$mode tp}
|
|
{$F+}
|
|
|
|
type proc = procedure(a : longint);
|
|
procedure test(b : longint);
|
|
begin
|
|
Writeln('Test ',b);
|
|
end;
|
|
|
|
var
|
|
t : proc;
|
|
|
|
begin
|
|
t:=test;
|
|
t:=proc(test);
|
|
test(3);
|
|
t(5);
|
|
end.
|