diff options
author | Araq <rumpf_a@web.de> | 2014-11-30 23:11:32 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-11-30 23:11:32 +0100 |
commit | 866ce10b056edc19e77c8a1b35ca5cb0645be4dd (patch) | |
tree | 5d04c759e42951d18a1fea2e1d2e62616c3964f6 | |
parent | a1c217a2db6e3b263d4bc847d3f888f9ee63dc3c (diff) | |
download | Nim-866ce10b056edc19e77c8a1b35ca5cb0645be4dd.tar.gz |
fixes #1687
-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 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 |