From a6744ed09b49b740dfc2852d655f5ed6dd471cbf Mon Sep 17 00:00:00 2001 From: Li Jin Date: Tue, 8 Feb 2022 16:39:20 +0800 Subject: 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. --- spec/inputs/existential.yue | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'spec/inputs') 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" \write "hello" \close! +tb?.a#? 123 + +with? tb.#?.index# + .a = 1 + +nil + -- cgit v1.2.3-55-g6feb