Merge pull request #9027 from fragcolor-xyz/more-custom-pragmas

Allow custom pragmas on more symbols again
This commit is contained in:
Andreas Rumpf
2018-09-22 08:57:42 +02:00
committed by GitHub

View File

@@ -1110,7 +1110,7 @@ proc singlePragma(c: PContext, sym: PSym, n: PNode, i: var int,
else: sym.flags.incl sfUsed
of wLiftLocals: discard
else: invalidPragma(c, it)
elif sym.kind in {skField,skProc,skFunc,skConverter,skMethod,skType}:
elif sym.kind in {skVar,skLet,skParam,skField,skProc,skFunc,skConverter,skMethod,skType}:
n.sons[i] = semCustomPragma(c, it)
else:
illegalCustomPragma(c, it, sym)