diff options
author | Araq <rumpf_a@web.de> | 2017-12-27 21:26:37 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-12-27 21:26:37 +0100 |
commit | 0b0baece89883a2d91d9ebbff66538d974ee1fbc (patch) | |
tree | 93c2ca763a4e17b8a7e5356e53fb45775d427b01 /tests/exprs/tstmtexprs.nim | |
parent | e49f18801c0891221ca76d3a94f5cafa2af40448 (diff) | |
download | Nim-0b0baece89883a2d91d9ebbff66538d974ee1fbc.tar.gz |
fixes #6980
Diffstat (limited to 'tests/exprs/tstmtexprs.nim')
-rw-r--r-- | tests/exprs/tstmtexprs.nim | 12 |
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") |