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