diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2022-10-01 16:46:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-01 16:46:51 +0200 |
commit | 8d47bf1822f7d7886ff62f6d14abe405f9f68ed7 (patch) | |
tree | 15f0c680c6bfcaeb47c17f21548c1dcb74507980 /tests/destructor/t16607.nim | |
parent | cfff454cf9852be9df2020c3a2d192caaa2f418a (diff) | |
download | Nim-8d47bf1822f7d7886ff62f6d14abe405f9f68ed7.tar.gz |
new move analyser2 (#20471)
* produce better code for closure environment creation * new 'first write' analysis; * scope based move analyser * code cleanup Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
Diffstat (limited to 'tests/destructor/t16607.nim')
-rw-r--r-- | tests/destructor/t16607.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/destructor/t16607.nim b/tests/destructor/t16607.nim index 5cc9d4a08..f98a6d517 100644 --- a/tests/destructor/t16607.nim +++ b/tests/destructor/t16607.nim @@ -15,8 +15,7 @@ proc initO(): O = O(initialized: true) proc pair(): tuple[a, b: O] = - result.a = initO() - result.b = initO() + result = (a: initO(), b: initO()) proc main() = discard pair() |