fpc/tests/test/tgenconstraint38.pp
svenbarth 684c8842e7 Fix for Mantis #26599.
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 -
2014-09-05 14:42:22 +00:00

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.