diff options
author | Li Jin <dragon-fly@qq.com> | 2023-11-02 12:27:27 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2023-11-02 12:27:27 +0800 |
commit | 5ad0f4daa8171460dc71332669c365bb8e07dab0 (patch) | |
tree | da57ecdabf5fa54c324c023ac22c53041aaff143 /spec/inputs/switch.yue | |
parent | 2263cca3687bb5c6b9c51f42d59d2249c18941a0 (diff) | |
download | yuescript-5ad0f4daa8171460dc71332669c365bb8e07dab0.tar.gz yuescript-5ad0f4daa8171460dc71332669c365bb8e07dab0.tar.bz2 yuescript-5ad0f4daa8171460dc71332669c365bb8e07dab0.zip |
fix table matching syntax in switch statement with list table.v0.20.4
Diffstat (limited to 'spec/inputs/switch.yue')
-rw-r--r-- | spec/inputs/switch.yue | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/inputs/switch.yue b/spec/inputs/switch.yue index cb1eb31..49d47f3 100644 --- a/spec/inputs/switch.yue +++ b/spec/inputs/switch.yue | |||
@@ -159,5 +159,11 @@ do | |||
159 | when {x: <>: mt} | 159 | when {x: <>: mt} |
160 | print mt | 160 | print mt |
161 | 161 | ||
162 | do | ||
163 | switch tb | ||
164 | when [ [item,],] | ||
165 | print item | ||
166 | when [a = 1, b = "abc"] | ||
167 | print a, b | ||
162 | nil | 168 | nil |
163 | 169 | ||