diff options
-rw-r--r-- | compiler/ccgstmts.nim | 2 | ||||
-rw-r--r-- | tests/typerel/trectype.nim | 9 |
2 files changed, 4 insertions, 7 deletions
diff --git a/compiler/ccgstmts.nim b/compiler/ccgstmts.nim index a1ec73e5c..18987b915 100644 --- a/compiler/ccgstmts.nim +++ b/compiler/ccgstmts.nim @@ -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.getUniqueType + var t = tup.t.skipTypes(abstractInst) for i in countup(0, L-3): var v = n.sons[i].sym if sfCompileTime in v.flags: continue diff --git a/tests/typerel/trectype.nim b/tests/typerel/trectype.nim index 7bb12a3b6..51ed9fc8f 100644 --- a/tests/typerel/trectype.nim +++ b/tests/typerel/trectype.nim @@ -6,7 +6,7 @@ discard """ type PA = ref TA - TA = array [0..2, PA] + TA = array[0..2, PA] PRec = ref TRec TRec {.final.} = object @@ -14,13 +14,10 @@ type P1 = ref T1 PB = ref TB - TB = array [0..3, P1] - T1 = array [0..6, PB] + TB = array[0..3, P1] + T1 = array[0..6, PB] var x: PA new(x) #ERROR_MSG internal error: cannot generate C type for: PA - - - |