summary refs log tree commit diff stats
path: root/compiler/pragmas.nim
diff options
context:
space:
mode:
authorNeelesh Chandola <neelesh.chandola@outlook.com>2019-01-11 23:46:03 +0530
committerAndreas Rumpf <rumpf_a@web.de>2019-01-11 19:16:03 +0100
commitb0979c8b1c3b43c285fc06ba492b20607e264560 (patch)
tree86d336b703dd43eaa435b64d5463982c88bd386d /compiler/pragmas.nim
parent09ef25810aa7de55c32dfe7025668f1f889d00d6 (diff)
downloadNim-b0979c8b1c3b43c285fc06ba492b20607e264560.tar.gz
Cleanup comesFromPush logic (#10278)
Diffstat (limited to 'compiler/pragmas.nim')
-rw-r--r--compiler/pragmas.nim9
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim
index b1a88ace7..4adf6032b 100644
--- a/compiler/pragmas.nim
+++ b/compiler/pragmas.nim
@@ -1054,14 +1054,7 @@ proc singlePragma(c: PContext, sym: PSym, n: PNode, i: var int,
         noVal(c, it)
         if sym == nil: invalidPragma(c, it)
       of wLine: pragmaLine(c, it)
-      of wRaises, wTags:
-        if not sym.isNil and sym.kind in {skVar, skLet, skConst}:
-          if comesFromPush:
-            return
-          else:
-            invalidPragma(c, it)
-        else:
-          pragmaRaisesOrTags(c, it)
+      of wRaises, wTags: pragmaRaisesOrTags(c, it)
       of wLocks:
         if sym == nil: pragmaLockStmt(c, it)
         elif sym.typ == nil: invalidPragma(c, it)