Skip to content

Commit

Permalink
fix nim-lang#12985 {.push.} now does not apply to generic instantiations
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Dec 31, 2019
1 parent ce40ed1 commit f510710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/pragmas.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f510710

Please sign in to comment.