From 0ff23e696c1e239214dfc2f1d2bb3e8fc6bf9493 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Thu, 2 Jan 2020 07:49:57 -0800 Subject: [PATCH] fix #12985 {.push.} now does not apply to generic instantiations (#12986) --- compiler/pragmas.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim index c8b13ab6ae..726402bb41 100644 --- a/compiler/pragmas.nim +++ b/compiler/pragmas.nim @@ -1168,7 +1168,7 @@ proc implicitPragmas*(c: PContext, sym: PSym, n: PNode, if sym != nil and sym.kind != skModule: for it in c.optionStack: let o = it.otherPragmas - if not o.isNil: + if not o.isNil and sfFromGeneric notin sym.flags: # see issue #12985 pushInfoContext(c.config, n.info) var i = 0 while i < o.len: