{ %FAIL } program tgenfwd5; {$mode objfpc} type TSomeClass = class end; generic TTest = class; generic TTest = class end; begin end.