From 2f8215df7288e0aac690c8e8b1ff79865f114302 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Tue, 3 Sep 2024 23:23:25 +0800 Subject: fix correct evaluation order for multi-value assignments. --- spec/inputs/destructure.yue | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec/inputs') diff --git a/spec/inputs/destructure.yue b/spec/inputs/destructure.yue index 5017ee1..674dfe4 100644 --- a/spec/inputs/destructure.yue +++ b/spec/inputs/destructure.yue @@ -6,6 +6,14 @@ do { :hello, :world } = value +do + x, [a, b] = f! + print x, a, b + +do + list = [ [1, 2], [3, 4]] + {x, y}, list = lume.first(list), lume.slice list, 2 + do { yes: no, thing } = world -- cgit v1.2.3-55-g6feb