{ %NORUN } program tw27424; {$mode objfpc} type TType = class(TObject) end; generic TTest = class(TObject) end; TFoo = class(TType) end; TBar = class(specialize TTest) end; begin end.