fix #12985 {.push.} now does not apply to generic instantiations (#12986)

This commit is contained in:
Timothee Cour
2020-01-02 07:49:57 -08:00
committed by Andreas Rumpf
parent c3344862b0
commit 0ff23e696c

View File

@@ -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: