fpc/tests/test/timpfuncspez3.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

18 lines
249 B
ObjectPascal

{%FAIL}
{$mode objfpc}
{$modeswitch implicitfunctionspecialization}
{
Test that sets are not compatible with open arrays
}
program timpfuncspez3;
generic procedure DoThis<T>(a: array of T);
begin
end;
const
c1 = [1,2,3];
begin
DoThis(c1);
end.