Skip to content

Commit ffb82e3

Browse files
committed
fix #12985 {.push.} now does not apply to generic instantiations
1 parent b67dea7 commit ffb82e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/pragmas.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ proc implicitPragmas*(c: PContext, sym: PSym, n: PNode,
11681168
if sym != nil and sym.kind != skModule:
11691169
for it in c.optionStack:
11701170
let o = it.otherPragmas
1171-
if not o.isNil:
1171+
if not o.isNil and sfFromGeneric notin sym.flags: # see issue #12985
11721172
pushInfoContext(c.config, n.info)
11731173
var i = 0
11741174
while i < o.len:

0 commit comments

Comments
 (0)