mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 01:08:07 +02:00
17 lines
355 B
ObjectPascal
17 lines
355 B
ObjectPascal
{ %NORUN }
|
|
|
|
program tfuncref18;
|
|
|
|
{$mode objfpc}{$H+}
|
|
{$modeswitch functionreferences}
|
|
|
|
type
|
|
TTest1 = reference to function: TTest1;
|
|
TTest2 = reference to procedure(aArg: TTest2);
|
|
{ this needs support for specialize defs to work correctly }
|
|
//TTest3 = reference to function(aArg: specialize TArray<TTest3>): specialize TArray<TTest3>;
|
|
|
|
begin
|
|
|
|
end.
|