aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-07-20 18:25:10 +0800
committerLi Jin <dragon-fly@qq.com>2023-07-20 18:25:10 +0800
commitfcb480618f162817572947cfed96b1ba0d6c5a44 (patch)
treea7fb68bc263730a665d49648b01771742bb8dc24 /spec/inputs
parent2faf55a8217690988bc2cab7cc65541dc2215dc1 (diff)
downloadyuescript-0.17.8.tar.gz
yuescript-0.17.8.tar.bz2
yuescript-0.17.8.zip
fix wrong codes generation for in-expression.v0.17.8
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/in_expression.yue9
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/inputs/in_expression.yue b/spec/inputs/in_expression.yue
index 4080016..6e923e1 100644
--- a/spec/inputs/in_expression.yue
+++ b/spec/inputs/in_expression.yue
@@ -39,7 +39,14 @@ do
39 not_exist = item not in list 39 not_exist = item not in list
40 check item in list 40 check item in list
41 check item in {1, 2, 3} 41 check item in {1, 2, 3}
42 check item in {[1]: 1, [2]: 2, [3]: 3} 42 check item(...) in {[1]: 1, [2]: 2, [3]: 3}
43
44do
45 check -> x in tb
46 check -> x not in tb
47 local x, tb
48 check -> return x in tb
49 check -> x not in tb
43 50
44nil 51nil
45 52