summary refs log tree commit diff stats
path: root/tests/exprs/tstmtexprs.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-12-27 21:26:37 +0100
committerAraq <rumpf_a@web.de>2017-12-27 21:26:37 +0100
commit0b0baece89883a2d91d9ebbff66538d974ee1fbc (patch)
tree93c2ca763a4e17b8a7e5356e53fb45775d427b01 /tests/exprs/tstmtexprs.nim
parente49f18801c0891221ca76d3a94f5cafa2af40448 (diff)
downloadNim-0b0baece89883a2d91d9ebbff66538d974ee1fbc.tar.gz
fixes #6980
Diffstat (limited to 'tests/exprs/tstmtexprs.nim')
-rw-r--r--tests/exprs/tstmtexprs.nim12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/exprs/tstmtexprs.nim b/tests/exprs/tstmtexprs.nim
index 9283f7268..2a0ec2821 100644
--- a/tests/exprs/tstmtexprs.nim
+++ b/tests/exprs/tstmtexprs.nim
@@ -140,4 +140,14 @@ echo(
   else:
      quo do (a: int) -> bool:
         a mod 3 != 0
-)
\ No newline at end of file
+)
+
+# bug #6980
+
+proc fooBool: bool {.discardable.} =
+  true
+
+if true:
+  fooBool()
+else:
+  raise newException(ValueError, "argh")