fixes #6980
This commit is contained in:
parent
e49f18801c
commit
0b0baece89
3 changed files with 25 additions and 2 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue