diff options
| author | Li Jin <dragon-fly@qq.com> | 2023-06-29 14:23:44 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2023-06-29 14:24:40 +0800 |
| commit | dce38caac22a024026d19f556aefe0669f97403c (patch) | |
| tree | 8b90a10585139dec76b596d714e213fc9393603b /spec/inputs | |
| parent | 3edfe65c36d716ca0d1a4d15e78c84c94cb144d0 (diff) | |
| download | yuescript-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.yue | 2 |
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 | ||
| 5 | d = (tb.x.y ...) not in [1, 3] | 5 | d = (tb.x.y ...) not in [1, 3] |
| 6 | 6 | ||
| 7 | has = "foo" in { "bar", "foo" } | ||
| 8 | |||
| 7 | if a in {1} and b in {2, 3, 4} or c in [1, 10] | 9 | if 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 | ||
