t3784.nim 233 B

123456789101112131415161718192021
  1. discard """
  2. output: "T[1, 1]"
  3. """
  4. # https://github.com/nim-lang/Nim/issues/3784
  5. import typetraits
  6. type
  7. S[N: static[int]] = object
  8. T[A,B: static[int]] = object
  9. C = S[1]
  10. var
  11. x: T[1,1]
  12. y: T[C.N, C.N]
  13. echo y.type.name