Nim/tests/typerel/t8905.nim
2018-09-07 21:06:30 +02:00

7 lines
126 B
Nim

type
Foo[T] = distinct seq[T]
Bar[T] = object
proc newFoo[T](): Foo[T] = Foo[T](newSeq[T]())
var x = newFoo[Bar[int]]()