aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/existential.moon
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-01-23 14:35:14 +0800
committerLi Jin <dragon-fly@qq.com>2020-01-23 14:35:14 +0800
commit7ac3519dc40bb6f6ab979c9cd35fd585f25d1c25 (patch)
tree024fabcf12638dbd4cb9fe6c58251f9227fc9380 /spec/inputs/existential.moon
parent782334d95720819f216004e0120ea84ba2c43afb (diff)
downloadyuescript-7ac3519dc40bb6f6ab979c9cd35fd585f25d1c25.tar.gz
yuescript-7ac3519dc40bb6f6ab979c9cd35fd585f25d1c25.tar.bz2
yuescript-7ac3519dc40bb6f6ab979c9cd35fd585f25d1c25.zip
fix Moonscript issue 156, update new 'import' functions.
Diffstat (limited to 'spec/inputs/existential.moon')
-rw-r--r--spec/inputs/existential.moon16
1 files changed, 14 insertions, 2 deletions
diff --git a/spec/inputs/existential.moon b/spec/inputs/existential.moon
index 97e8de0..eaa3266 100644
--- a/spec/inputs/existential.moon
+++ b/spec/inputs/existential.moon
@@ -1,8 +1,20 @@
1if {:x} = a?.if?\then?(123)? @?\function 998 1
2f?!
3
4x = tab?.value
5
6print abc?["hello world"]?.xyz
7
8if print and x?
2 print x 9 print x
3 10
11@?\func 998
12
4with abc?!\func?! 13with abc?!\func?!
5 if \p? "abc" 14 if \p? "abc"
6 return 123 15 return 123
7 16
8@?\func 998 17if {:x} = a?.if?\then?(123)? @?\function 998
18 print x
19
20