summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
authorYuriy Glukhov <yuriy.glukhov@gmail.com>2017-06-18 00:52:56 +0300
committerYuriy Glukhov <yuriy.glukhov@gmail.com>2017-06-18 00:57:05 +0300
commit58eae1171ddce623e44257ea3929969f5099f5db (patch)
tree9ee5baad0b3f8a69a5f510fdad12c726eb4c7ab7 /compiler/semstmts.nim
parentd9477535230a0f32f8ee7a2d0cdd28d8fea2121b (diff)
downloadNim-58eae1171ddce623e44257ea3929969f5099f5db.tar.gz
Fixes #5995
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r--compiler/semstmts.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index 576f2695b..7ea7763c3 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -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