summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-11-30 23:11:32 +0100
committerAraq <rumpf_a@web.de>2014-11-30 23:11:32 +0100
commit866ce10b056edc19e77c8a1b35ca5cb0645be4dd (patch)
tree5d04c759e42951d18a1fea2e1d2e62616c3964f6
parenta1c217a2db6e3b263d4bc847d3f888f9ee63dc3c (diff)
downloadNim-866ce10b056edc19e77c8a1b35ca5cb0645be4dd.tar.gz
fixes #1687
-rw-r--r--compiler/semtypinst.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semtypinst.nim b/compiler/semtypinst.nim
index 064bbf823..c53464f80 100644
--- a/compiler/semtypinst.nim
+++ b/compiler/semtypinst.nim
@@ -291,7 +291,7 @@ proc handleGenericInvokation(cl: var TReplTypeVars, t: PType): PType =
 
   var newbody = replaceTypeVarsT(cl, lastSon(body))
   newbody.flags = newbody.flags + (t.flags + body.flags - tfInstClearedFlags)
-  result.flags = result.flags + newbody.flags
+  result.flags = result.flags + newbody.flags - tfInstClearedFlags
   newbody.callConv = body.callConv
   # This type may be a generic alias and we want to resolve it here.
   # One step is enough, because the recursive nature of