aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-06-29 14:23:44 +0800
committerLi Jin <dragon-fly@qq.com>2023-06-29 14:24:40 +0800
commitdce38caac22a024026d19f556aefe0669f97403c (patch)
tree8b90a10585139dec76b596d714e213fc9393603b /spec/inputs
parent3edfe65c36d716ca0d1a4d15e78c84c94cb144d0 (diff)
downloadyuescript-0.17.3.tar.gz
yuescript-0.17.3.tar.bz2
yuescript-0.17.3.zip
fix assignment to in-expression with discrete values issue from #140v0.17.3
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/in_expression.yue2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/inputs/in_expression.yue b/spec/inputs/in_expression.yue
index 2756fe8..dacf820 100644
--- a/spec/inputs/in_expression.yue
+++ b/spec/inputs/in_expression.yue
@@ -4,6 +4,8 @@ a, b = x(...) not in [1, 3], 2
4 4
5d = (tb.x.y ...) not in [1, 3] 5d = (tb.x.y ...) not in [1, 3]
6 6
7has = "foo" in { "bar", "foo" }
8
7if a in {1} and b in {2, 3, 4} or c in [1, 10] 9if a in {1} and b in {2, 3, 4} or c in [1, 10]
8 print a, b, c 10 print a, b, c
9 11