From 866ce10b056edc19e77c8a1b35ca5cb0645be4dd Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 30 Nov 2014 23:11:32 +0100 Subject: fixes #1687 --- compiler/semtypinst.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler') 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 -- cgit 1.4.1-2-gfad0