summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorandri lim <jangko128@gmail.com>2017-04-01 02:58:09 +0700
committerAndreas Rumpf <rumpf_a@web.de>2017-03-31 21:58:09 +0200
commitfce4b7cd6216cb1f3f195cfdefc4c16da37958fd (patch)
treef108e065b390acc2ea3a2c04c2b231f9a9ff4370 /compiler
parentd7eb146d28515e9aea5ae0f98e01b09bd96b5919 (diff)
downloadNim-fce4b7cd6216cb1f3f195cfdefc4c16da37958fd.tar.gz
attempt to fix #5621 #5615 generic ref object typeRel (#5633)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semtypinst.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semtypinst.nim b/compiler/semtypinst.nim
index fddcc7a24..9ff0b7e78 100644
--- a/compiler/semtypinst.nim
+++ b/compiler/semtypinst.nim
@@ -472,7 +472,7 @@ proc replaceTypeVarsTAux(cl: var TReplTypeVars, t: PType): PType =
           var r = replaceTypeVarsT(cl, result.sons[i])
           if result.kind == tyObject:
             # carefully coded to not skip the precious tyGenericInst:
-            let r2 = r.skipTypes({tyGenericInst, tyAlias})
+            let r2 = r.skipTypes({tyAlias})
             if r2.kind in {tyPtr, tyRef}:
               r = skipTypes(r2, {tyPtr, tyRef})
           result.sons[i] = r