aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/existential.moon
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-01-25 17:48:03 +0800
committerLi Jin <dragon-fly@qq.com>2020-01-25 17:48:03 +0800
commited317e62eb1cf98fde4461fc90c6cb1045ebc7e8 (patch)
tree427e365939da39f31dbfa755675fb60bb141583d /spec/inputs/existential.moon
parent4827d200604a086e2ad94edb4257c3abc7a3c4fc (diff)
downloadyuescript-ed317e62eb1cf98fde4461fc90c6cb1045ebc7e8.tar.gz
yuescript-ed317e62eb1cf98fde4461fc90c6cb1045ebc7e8.tar.bz2
yuescript-ed317e62eb1cf98fde4461fc90c6cb1045ebc7e8.zip
fix Moonscript issue 375.
Diffstat (limited to 'spec/inputs/existential.moon')
-rw-r--r--spec/inputs/existential.moon22
1 files changed, 21 insertions, 1 deletions
diff --git a/spec/inputs/existential.moon b/spec/inputs/existential.moon
index f7d5ebd..2264768 100644
--- a/spec/inputs/existential.moon
+++ b/spec/inputs/existential.moon
@@ -1,5 +1,7 @@
1 1
2f?! 2f1?!
3
4f2? "arg0",123
3 5
4x = tab?.value 6x = tab?.value
5 7
@@ -19,3 +21,21 @@ if {:x} = a?.if?\then?(123)? @?\function 998
19 21
20res = b.function\do!\while?("OK")\if("def",998)\f? 22res = b.function\do!\while?("OK")\if("def",998)\f?
21print res 23print res
24
25solipsism = true if mind? and not world?
26
27speed = 0
28speed or= 15
29
30footprints = yeti or "bear"
31
32major = 'Computer Science'
33
34unless major?
35 signUpForClass 'Introduction to Wines'
36
37if window?
38 environment = 'browser (probably)'
39
40zip = lottery.drawWinner?!.address?.zipcode
41