Skip to content

Commit

Permalink
Fixes semCustomPragma when nkSym (#12414) [backport]
Browse files Browse the repository at this point in the history
  • Loading branch information
alehander92 authored and Araq committed Oct 11, 2019
1 parent 94c1695 commit 990aadc
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 @@ -720,7 +720,7 @@ proc pragmaGuard(c: PContext; it: PNode; kind: TSymKind): PSym =
proc semCustomPragma(c: PContext, n: PNode): PNode =
var callNode: PNode

if n.kind == nkIdent:
if n.kind in {nkIdent, nkSym}:
# pragma -> pragma()
callNode = newTree(nkCall, n)
elif n.kind == nkExprColonExpr:
Expand Down

0 comments on commit 990aadc

Please sign in to comment.