fpc/tests/test/timpfuncspez36.pp
2022-04-22 10:40:58 +02:00

22 lines
332 B
ObjectPascal

{ %NORUN }
program timpfuncspez36;
{$mode objfpc}
{$modeswitch implicitfunctionspecialization}
type
generic TTestFunc<T> = procedure(aArg1: String; aArg2: T);
generic procedure DoTest<T>(aArg: specialize TTestFunc<T>);
begin
end;
procedure TestFunc(aArg1: String; aArg2: LongInt);
begin
end;
begin
DoTest(@TestFunc);
end.