tdistinctseq.nim 177 B

123456789
  1. discard """
  2. matrix: "-u:nimPreviewNonVarDestructor;"
  3. """
  4. type DistinctSeq* = distinct seq[int]
  5. # `=destroy`(cast[ptr DistinctSeq](0)[])
  6. var x = @[].DistinctSeq
  7. `=destroy`(x)