t8905.nim 126 B

12345678
  1. type
  2. Foo[T] = distinct seq[T]
  3. Bar[T] = object
  4. proc newFoo[T](): Foo[T] = Foo[T](newSeq[T]())
  5. var x = newFoo[Bar[int]]()