This commit is contained in:
Araq 2017-12-27 21:26:37 +01:00
commit 0b0baece89
3 changed files with 25 additions and 2 deletions

View file

@ -140,4 +140,14 @@ echo(
else:
quo do (a: int) -> bool:
a mod 3 != 0
)
)
# bug #6980
proc fooBool: bool {.discardable.} =
true
if true:
fooBool()
else:
raise newException(ValueError, "argh")