summary refs log tree commit diff stats
path: root/compiler/semtypinst.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-03-14 07:59:35 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-03-14 07:59:44 +0100
commit2ab6b2c657451c26100645446958671e195a5fb6 (patch)
treef2fb8ca60ecdca22acbb525327b0d8488b52582a /compiler/semtypinst.nim
parent79b1eafa59983509a2eb61072974de8dfc05f196 (diff)
downloadNim-2ab6b2c657451c26100645446958671e195a5fb6.tar.gz
--newruntime: work in progress
Diffstat (limited to 'compiler/semtypinst.nim')
-rw-r--r--compiler/semtypinst.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semtypinst.nim b/compiler/semtypinst.nim
index e3380c0e3..152a75ee3 100644
--- a/compiler/semtypinst.nim
+++ b/compiler/semtypinst.nim
@@ -593,7 +593,7 @@ proc replaceTypeVarsTAux(cl: var TReplTypeVars, t: PType): PType =
 
       of tySequence:
         if cl.isReturnType and cl.c.config.selectedGc == gcDestructors and result.destructor.isNil and
-            result[0].kind != tyEmpty:
+            result[0].kind != tyEmpty and optNimV2 notin cl.c.config.globalOptions:
           let s = cl.c.graph.sysTypes[tySequence]
           var old = copyType(s, s.owner, keepId=false)
           # Remove the 'T' parameter from tySequence: