Revert "Fixes #17450 (#17474)" (#17476)

This reverts commit 5f0c520489.
This commit is contained in:
Clyybber 2021-03-23 15:44:20 +01:00 • committed by GitHub
commit 97f51ed7c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 27 deletions

View file

@ -107,8 +107,6 @@ sink
destroy
copy
destroy
(f: 1)
destroy
'''
"""
@ -772,15 +770,3 @@ 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()