mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 23:09:40 +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
20 lines
268 B
ObjectPascal
20 lines
268 B
ObjectPascal
{%FAIL}
|
|
{$mode objfpc}
|
|
{$modeswitch implicitfunctionspecialization}
|
|
{
|
|
Testing ambiguous specializations
|
|
}
|
|
|
|
program timpfuncspez11;
|
|
|
|
generic procedure DoThis<T>(a:T; b: word);
|
|
begin
|
|
end;
|
|
|
|
generic procedure DoThis<T>(a: word; b: T);
|
|
begin
|
|
end;
|
|
|
|
begin
|
|
DoThis(1,1);
|
|
end. |