summary refs log tree commit diff stats
path: root/tests/arc/topt_no_cursor.nim
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2023-08-24 07:11:48 +0300
committerGitHub <noreply@github.com>2023-08-24 06:11:48 +0200
commit53d43e96716539d96e6a1e5f3926a3fe3a11e2dd (patch)
tree72cfa0912436848892c30608f3d2eb28aa2d6347 /tests/arc/topt_no_cursor.nim
parent03f267c8013eca2830eb3deadda73ed08096ec12 (diff)
downloadNim-53d43e96716539d96e6a1e5f3926a3fe3a11e2dd.tar.gz
round out tuple unpacking assignment, support underscores (#22537)
* round out tuple unpacking assignment, support underscores

fixes #18710

* fix test messages

* use discard instead of continue

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>

---------

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Diffstat (limited to 'tests/arc/topt_no_cursor.nim')
-rw-r--r--tests/arc/topt_no_cursor.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/arc/topt_no_cursor.nim b/tests/arc/topt_no_cursor.nim
index 7cfb0a0d5..dfb0f0a38 100644
--- a/tests/arc/topt_no_cursor.nim
+++ b/tests/arc/topt_no_cursor.nim
@@ -39,13 +39,13 @@ var
   lresult
   lvalue
   lnext
-  _
+  tmpTupleAsgn
 lresult = @[123]
-_ = (
+tmpTupleAsgn = (
   let blitTmp = lresult
   blitTmp, ";")
-lvalue = _[0]
-lnext = _[1]
+lvalue = tmpTupleAsgn[0]
+lnext = tmpTupleAsgn[1]
 `=sink`(result.value, move lvalue)
 `=destroy`(lnext)
 `=destroy_1`(lvalue)