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

22 lines
283 B
ObjectPascal

{%FAIL}
{$mode objfpc}
{$modeswitch implicitfunctionspecialization}
{
Test class constraints
}
program timpfuncspez22;
type
TMyClass = class
end;
TOtherClass = class
end;
generic procedure DoThis<T: TMyClass>(obj: T);
begin
end;
begin
DoThis(TOtherClass.Create);
end.