* Fixes #17450

* Add missing test output
This commit is contained in:
Clyybber 2021-03-23 16:30:49 +01:00 • committed by GitHub
commit 833084b671
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 1 deletions

View file

@ -107,6 +107,8 @@ sink
destroy
copy
destroy
(f: 1)
destroy
'''
"""
@ -770,3 +772,15 @@ proc pair(): tuple[a: C, b: C] =
discard pair()
# bug #17450
proc noConsume(x: OO) {.nosinks.} = echo x
proc main3 =
var i = 1
noConsume:
block:
OO(f: i)
main3()