ARC: another critical bugfix; temporary tuples we introduce for tuple unpackaging are not owning the data

This commit is contained in:
Araq 2019-11-22 21:41:35 +01:00
commit 8b2f8f5430
2 changed files with 2 additions and 1 deletions

View file

@ -28,7 +28,7 @@ proc test(): auto =
var (a, b, _) = test()
doAssert assign_counter == 0
doAssert sink_counter == 12 # + 3 because of the conservative tuple unpacking transformation
doAssert sink_counter == 9 # XXX this is still silly and needs to be investigated
# bug #11510
proc main =