mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-11 00:38:06 +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
22 lines
283 B
ObjectPascal
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. |