diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-03-14 07:59:35 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-03-14 07:59:44 +0100 |
commit | 2ab6b2c657451c26100645446958671e195a5fb6 (patch) | |
tree | f2fb8ca60ecdca22acbb525327b0d8488b52582a /compiler/semtypinst.nim | |
parent | 79b1eafa59983509a2eb61072974de8dfc05f196 (diff) | |
download | Nim-2ab6b2c657451c26100645446958671e195a5fb6.tar.gz |
--newruntime: work in progress
Diffstat (limited to 'compiler/semtypinst.nim')
-rw-r--r-- | compiler/semtypinst.nim | 2 |
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: |