diff options
author | Li Jin <dragon-fly@qq.com> | 2022-02-08 16:39:20 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-02-08 16:39:20 +0800 |
commit | a6744ed09b49b740dfc2852d655f5ed6dd471cbf (patch) | |
tree | 4209b5f16c67f79259ad4c6bf116a8428b589ad3 /spec/inputs | |
parent | d22ae154b57ac80107020e98f04f76fffaa9cd90 (diff) | |
download | yuescript-a6744ed09b49b740dfc2852d655f5ed6dd471cbf.tar.gz yuescript-a6744ed09b49b740dfc2852d655f5ed6dd471cbf.tar.bz2 yuescript-a6744ed09b49b740dfc2852d655f5ed6dd471cbf.zip |
fix a case combining the use of existential op and metatable op. raise error when use existential op in the left part in an assignment.
Diffstat (limited to 'spec/inputs')
-rw-r--r-- | spec/inputs/existential.yue | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/inputs/existential.yue b/spec/inputs/existential.yue index 3055705..101e1d8 100644 --- a/spec/inputs/existential.yue +++ b/spec/inputs/existential.yue | |||
@@ -49,3 +49,10 @@ with? io.open "test.txt", "w" | |||
49 | \write "hello" | 49 | \write "hello" |
50 | \close! | 50 | \close! |
51 | 51 | ||
52 | tb?.a#? 123 | ||
53 | |||
54 | with? tb.#?.index# | ||
55 | .a = 1 | ||
56 | |||
57 | nil | ||
58 | |||