mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 19:08:18 +02:00
22 lines
176 B
ObjectPascal
22 lines
176 B
ObjectPascal
{ %FAIL }
|
|
|
|
program tprocvar6;
|
|
|
|
{$mode delphi}
|
|
|
|
var
|
|
Z: procedure of object;
|
|
|
|
type
|
|
C = class
|
|
procedure Foo;
|
|
end;
|
|
|
|
procedure C.Foo;
|
|
begin
|
|
end;
|
|
|
|
begin
|
|
Z := C.Foo;
|
|
end.
|