fpc/tests/webtbs/tw26599.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

20 lines
247 B
ObjectPascal

{ %NORUN }
program tw26599;
{$mode delphi}
type
TSomeList<T : TObject> = Class
End; { Class }
TSomeClass = Class;
TSomeClassList = TSomeList<TSomeClass>;
TSomeClass = Class(TObject)
SomeList : TSomeClassList;
End;
begin
end.