This commit is contained in:
Yuriy Glukhov 2017-06-18 00:52:56 +03:00
commit 58eae1171d
3 changed files with 5 additions and 2 deletions

View file

@ -1129,7 +1129,7 @@ proc semProcAnnotation(c: PContext, prc: PNode;
x.add(it.sons[1])
x.add(prc)
# recursion assures that this works for multiple macro annotations too:
result = semStmt(c, x)
result = semExpr(c, x)
# since a proc annotation can set pragmas, we process these here again.
# This is required for SqueakNim-like export pragmas.
if result.kind in procDefs and result[namePos].kind == nkSym and