summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-07-17 18:21:09 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-07-17 18:21:09 +0200
commitae09879b3a1a87b3949a9847ce517b2a507b7167 (patch)
treed97fe1e70f0be81d031be859be52439e69af3f23 /lib
parentfc0bcccc15ec5cf3351cf65b22c7a038d82d4b35 (diff)
downloadNim-ae09879b3a1a87b3949a9847ce517b2a507b7167.tar.gz
fixes #8223
Diffstat (limited to 'lib')
-rw-r--r--lib/system.nim5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/system.nim b/lib/system.nim
index fed02f6d0..f96f97dd6 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -4128,11 +4128,10 @@ template doAssertRaises*(exception, code: untyped): typed =
   ## .. code-block:: nim
   ##  doAssertRaises(ValueError):
   ##    raise newException(ValueError, "Hello World")
-  # TODO: investigate why runnableExamples here caused
-  # https://github.com/nim-lang/Nim/issues/8223
   var wrong = false
   try:
-    code
+    if true:
+      code
     wrong = true
   except exception:
     discard