From ae09879b3a1a87b3949a9847ce517b2a507b7167 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Tue, 17 Jul 2018 18:21:09 +0200 Subject: [PATCH] fixes #8223 --- lib/system.nim | 5 ++--- 1 file 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