fixes #2121
This commit is contained in:
parent
199707c189
commit
df2fdaf3c5
2 changed files with 10 additions and 1 deletions
9
tests/tuples/tgeneric_tuple.nim
Normal file
9
tests/tuples/tgeneric_tuple.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# bug #2121
|
||||
|
||||
type
|
||||
Item[K,V] = tuple
|
||||
key: K
|
||||
value: V
|
||||
|
||||
var q = newseq[Item[int,int]](0)
|
||||
let (x,y) = q[0]
|
||||
Loading…
Add table
Add a link
Reference in a new issue