Minor changes to discardable handling (#8155)

This commit is contained in:
LemonBoy 2018-07-01 15:27:14 +02:00 • committed by Andreas Rumpf
commit dbbe311e18
3 changed files with 17 additions and 21 deletions

View file

@ -151,3 +151,13 @@ if true:
fooBool()
else:
raise newException(ValueError, "argh")
# bug #5374
proc test1(): int64 {.discardable.} = discard
proc test2(): int {.discardable.} = discard
if true:
test1()
else:
test2()