summary refs log tree commit diff stats
path: root/tests/destructor/tprevent_assign3.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2022-10-01 16:46:51 +0200
committerGitHub <noreply@github.com>2022-10-01 16:46:51 +0200
commit8d47bf1822f7d7886ff62f6d14abe405f9f68ed7 (patch)
tree15f0c680c6bfcaeb47c17f21548c1dcb74507980 /tests/destructor/tprevent_assign3.nim
parentcfff454cf9852be9df2020c3a2d192caaa2f418a (diff)
downloadNim-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/tprevent_assign3.nim')
-rw-r--r--tests/destructor/tprevent_assign3.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/destructor/tprevent_assign3.nim b/tests/destructor/tprevent_assign3.nim
index 0577aa5ff..b9bd40fa9 100644
--- a/tests/destructor/tprevent_assign3.nim
+++ b/tests/destructor/tprevent_assign3.nim
@@ -18,7 +18,7 @@ proc createTree(x: int): Foo =
 proc take2(a, b: sink Foo) =
   echo a.x, " ", b.x
 
-proc allowThis() =
+when false:
   var otherTree: Foo
   try:
     for i in 0..3:
@@ -47,7 +47,7 @@ proc preventThis2() =
   finally:
     echo otherTree
 
-allowThis()
+#allowThis()
 preventThis2()