diff options
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 |