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

24 lines
275 B
ObjectPascal

{ %FAIL }
program tgenconstraint40;
{$mode objfpc}
type
ISomeInterface = interface
end;
generic TGeneric<T: ISomeInterface> = class
end;
ITest = interface;
TGenericITest = specialize TGeneric<ITest>;
ITest = interface(ISomeInterface)
end;
begin
end.