mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 14:48:18 +02:00
27 lines
220 B
ObjectPascal
27 lines
220 B
ObjectPascal
{ %FAIL }
|
|
|
|
program tprocvar8;
|
|
|
|
{$mode delphi}
|
|
|
|
var
|
|
Z: procedure of object;
|
|
|
|
type
|
|
C = class
|
|
procedure Foo;
|
|
end;
|
|
|
|
CC = class of C;
|
|
|
|
procedure C.Foo;
|
|
begin
|
|
end;
|
|
|
|
var
|
|
aCC: CC = Nil;
|
|
|
|
begin
|
|
Z := aCC.Foo;
|
|
end.
|