Minor changes to discardable handling (#8155)
This commit is contained in:
parent
b61e69202b
commit
dbbe311e18
3 changed files with 17 additions and 21 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue