mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 11:08:02 +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 -
21 lines
219 B
ObjectPascal
21 lines
219 B
ObjectPascal
{ %FAIL }
|
|
|
|
program tgenconstraint38;
|
|
|
|
{$mode objfpc}
|
|
|
|
type
|
|
generic TGeneric<T: TObject, IInterface> = class
|
|
end;
|
|
|
|
TTest = class;
|
|
|
|
TGenericTTest = specialize TGeneric<TTest>;
|
|
|
|
TTest = class
|
|
end;
|
|
|
|
begin
|
|
|
|
end.
|