mimportutils.nim 540 B

123456789101112131415161718192021222324252627282930313233
  1. type
  2. A* = object
  3. a0*: int
  4. ha1: float
  5. B = object
  6. b0*: int
  7. hb1: float
  8. C* = ref object
  9. c0: int
  10. hc1: float
  11. D* = ptr object
  12. d0: int
  13. hd1: float
  14. PA* = ref A
  15. PtA* = ptr A
  16. E*[T] = object
  17. he1: int
  18. FSub[T1, T2] = object
  19. h3: T1
  20. h4: T2
  21. F*[T1, T2] = ref FSub[T1, T2]
  22. G*[T] = ref E[T]
  23. H3*[T] = object
  24. h5: T
  25. H2*[T] = H3[T]
  26. H1*[T] = ref H2[T]
  27. H*[T] = H1[T]
  28. type BAalias* = typeof(B.default)
  29. # typeof is not a transparent abstraction, creates a `tyAlias`
  30. proc initB*(): B = B()