From 9a9005622b9aec69f48fe80344fc4d500862c578 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 24 Sep 2018 12:25:40 +0200 Subject: [PATCH] make t7346 work again --- compiler/ccgtypes.nim | 2 +- tests/{seq => destructor}/t7346.nim | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename tests/{seq => destructor}/t7346.nim (100%) diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index 52a4a72f2..3c7a0d26e 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -1206,7 +1206,7 @@ proc genTypeInfo(m: BModule, t: PType; info: TLineInfo): Rope = let x = fakeClosureType(m, t.owner) genTupleInfo(m, x, x, result, info) of tySequence: - if tfHasAsgn notin t.flags: + if m.config.selectedGC != gcDestructors: genTypeInfoAux(m, t, t, result, info) if m.config.selectedGC >= gcMarkAndSweep: let markerProc = genTraverseProc(m, origType, sig) diff --git a/tests/seq/t7346.nim b/tests/destructor/t7346.nim similarity index 100% rename from tests/seq/t7346.nim rename to tests/destructor/t7346.nim