diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-07-17 18:21:09 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-07-17 18:21:09 +0200 |
commit | ae09879b3a1a87b3949a9847ce517b2a507b7167 (patch) | |
tree | d97fe1e70f0be81d031be859be52439e69af3f23 /lib | |
parent | fc0bcccc15ec5cf3351cf65b22c7a038d82d4b35 (diff) | |
download | Nim-ae09879b3a1a87b3949a9847ce517b2a507b7167.tar.gz |
fixes #8223
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system.nim | 5 |
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 |