aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-02-08 16:39:20 +0800
committerLi Jin <dragon-fly@qq.com>2022-02-08 16:39:20 +0800
commita6744ed09b49b740dfc2852d655f5ed6dd471cbf (patch)
tree4209b5f16c67f79259ad4c6bf116a8428b589ad3 /spec/inputs
parentd22ae154b57ac80107020e98f04f76fffaa9cd90 (diff)
downloadyuescript-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.yue7
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
52tb?.a#? 123
53
54with? tb.#?.index#
55 .a = 1
56
57nil
58