diff options
author | metagn <metagngn@gmail.com> | 2023-08-24 07:11:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-24 06:11:48 +0200 |
commit | 53d43e96716539d96e6a1e5f3926a3fe3a11e2dd (patch) | |
tree | 72cfa0912436848892c30608f3d2eb28aa2d6347 /tests/arc/topt_no_cursor.nim | |
parent | 03f267c8013eca2830eb3deadda73ed08096ec12 (diff) | |
download | Nim-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.nim | 8 |
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) |