mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 20:08:12 +02:00

The main adjustments were as follows: - fixing coding style and identation - fixing some typos - using a better name for the property in tcallcandidates which holds the symbols created for anonymous parameter values
30 lines
434 B
ObjectPascal
30 lines
434 B
ObjectPascal
{%NORUN}
|
|
{$mode objfpc}
|
|
{$modeswitch implicitfunctionspecialization}
|
|
{
|
|
Test various overloads
|
|
}
|
|
|
|
program timpfuncspez34;
|
|
|
|
generic procedure DoThis<A>(param1: A);
|
|
begin
|
|
end;
|
|
|
|
generic procedure DoThis<A, B>(param1: A; param2: B);
|
|
begin
|
|
end;
|
|
|
|
generic procedure DoThis<A, B, C>(param1: A; param2: B; param3: C);
|
|
begin
|
|
end;
|
|
|
|
begin
|
|
DoThis(1);
|
|
DoThis(1,2);
|
|
DoThis(1,2,3);
|
|
|
|
DoThis(1);
|
|
DoThis(1,'aaa');
|
|
DoThis(1,'aaa',nil);
|
|
end. |