mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 17:59:26 +02:00

pgenutils.pas, check_generic_constraints: * correctly handle forward defs if the constraint is either a single IInterface/IUnknown or a TObject/class + added tests git-svn-id: trunk@28601 -
24 lines
251 B
ObjectPascal
24 lines
251 B
ObjectPascal
{ %FAIL }
|
|
|
|
program tgenconstraint39;
|
|
|
|
{$mode objfpc}
|
|
|
|
type
|
|
TSomeClass = class
|
|
end;
|
|
|
|
generic TGeneric<T: TSomeClass> = class
|
|
end;
|
|
|
|
TTest = class;
|
|
|
|
TGenericTTest = specialize TGeneric<TTest>;
|
|
|
|
TTest = class(TSomeClass)
|
|
end;
|
|
|
|
begin
|
|
|
|
end.
|