aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/using.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-07-26 18:05:23 +0800
committerLi Jin <dragon-fly@qq.com>2022-07-26 18:05:23 +0800
commit0f5bdeaeba0f04e49c47f4a2be55b14185a7dfdd (patch)
treeb5baa6c385ce58c60615ff0577a1e2b6850f044d /spec/inputs/using.yue
parente191defb6545509a4ae0b402f2fac1fbe18551cd (diff)
downloadyuescript-0f5bdeaeba0f04e49c47f4a2be55b14185a7dfdd.tar.gz
yuescript-0f5bdeaeba0f04e49c47f4a2be55b14185a7dfdd.tar.bz2
yuescript-0f5bdeaeba0f04e49c47f4a2be55b14185a7dfdd.zip
fix missing checks and issues related to destrucuring in if branches.
Diffstat (limited to 'spec/inputs/using.yue')
-rw-r--r--spec/inputs/using.yue7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/inputs/using.yue b/spec/inputs/using.yue
index 9944b60..31afaab 100644
--- a/spec/inputs/using.yue
+++ b/spec/inputs/using.yue
@@ -20,3 +20,10 @@ _ = (a,e,f using a,b,c, hello) ->
20 20
21_ = (using nil) -> 21_ = (using nil) ->
22 hello or= 2 22 hello or= 2
23
24do
25 a = {}
26 (using nil) <- _
27 {x, y} = a
28
29nil