tb0624.pp 337 B

123456789101112131415161718192021222324252627
  1. { %NORUN }
  2. program tb0624;
  3. {$mode delphi}
  4. type
  5. TTest<T> = record
  6. public type
  7. PSelf = ^TTest<T>;
  8. public
  9. Next: PSelf;
  10. end;
  11. TTest2<T> = record
  12. Next: ^TTest<T>;
  13. end;
  14. TTestLongInt = TTest<LongInt>;
  15. TTestString = TTest<String>;
  16. TTest2LongInt = TTest2<LongInt>;
  17. TTest2String = TTest2<String>;
  18. begin
  19. end.