fpc/tests/test/timpfuncspez34.pp
Sven/Sarah Barth 90844c2027 * fix #35261: apply slightly adjusted changes by Ryan Joseph to implement support for implicit generic function specializations
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
2022-04-20 18:59:31 +02:00

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.