This commit is contained in:
Araq
2015-02-14 14:45:49 +01:00
parent 199707c189
commit df2fdaf3c5
2 changed files with 10 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ proc genVarTuple(p: BProc, n: PNode) =
return
genLineDir(p, n)
initLocExpr(p, n.sons[L-1], tup)
var t = tup.t
var t = tup.t.getUniqueType
for i in countup(0, L-3):
var v = n.sons[i].sym
if sfCompileTime in v.flags: continue

View 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]