parent
90025e242d
commit
e69d8ec416
2 changed files with 9 additions and 1 deletions
7
tests/typerel/t8905.nim
Normal file
7
tests/typerel/t8905.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
type
|
||||
Foo[T] = distinct seq[T]
|
||||
Bar[T] = object
|
||||
|
||||
proc newFoo[T](): Foo[T] = Foo[T](newSeq[T]())
|
||||
|
||||
var x = newFoo[Bar[int]]()
|
||||
Loading…
Add table
Add a link
Reference in a new issue