diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-09-24 12:25:40 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-09-24 16:00:57 +0200 |
commit | 9a9005622b9aec69f48fe80344fc4d500862c578 (patch) | |
tree | 41b9bb6e43875705538c100bf8cf8eced94bdbef | |
parent | 9364369c1f346b9b328274f495267488bfe30b63 (diff) | |
download | Nim-9a9005622b9aec69f48fe80344fc4d500862c578.tar.gz |
make t7346 work again
-rw-r--r-- | compiler/ccgtypes.nim | 2 | ||||
-rw-r--r-- | tests/destructor/t7346.nim (renamed from tests/seq/t7346.nim) | 0 |
2 files changed, 1 insertions, 1 deletions
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 index ef2fd5b79..ef2fd5b79 100644 --- a/tests/seq/t7346.nim +++ b/tests/destructor/t7346.nim |