Fixes #5995
This commit is contained in:
parent
d947753523
commit
58eae1171d
3 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue