tgeneric73.pp 277 B

12345678910111213141516171819202122
  1. { %NORUN }
  2. { This tests that nested types can reference each other inside a generic }
  3. program tgeneric73;
  4. {$mode objfpc}
  5. type
  6. generic TTest<T> = class
  7. public type
  8. TSubClass1 = class
  9. end;
  10. TSubClass2 = class
  11. f: TSubClass1;
  12. end;
  13. end;
  14. begin
  15. end.