aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/return.moon
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-01-18 18:15:24 +0800
committerLi Jin <dragon-fly@qq.com>2020-01-18 18:15:24 +0800
commit8d1af508f4173e4af6a4ea98584c1a86619f6a20 (patch)
tree0264c4b01f1152d8114cf46aea6fd773276c0b01 /spec/inputs/return.moon
parentf53ccb373efbf6f6f40284111df309e351c2c18f (diff)
downloadyuescript-8d1af508f4173e4af6a4ea98584c1a86619f6a20.tar.gz
yuescript-8d1af508f4173e4af6a4ea98584c1a86619f6a20.tar.bz2
yuescript-8d1af508f4173e4af6a4ea98584c1a86619f6a20.zip
fix Moonscript issue 122, add support for ? operator.
Diffstat (limited to 'spec/inputs/return.moon')
-rw-r--r--spec/inputs/return.moon8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/inputs/return.moon b/spec/inputs/return.moon
index 61d3dca..98c3104 100644
--- a/spec/inputs/return.moon
+++ b/spec/inputs/return.moon
@@ -1,7 +1,7 @@
1-- testing `return` propagation 1-- testing `return` propagation
2 2
3-> x for x in *things 3_ = -> _ = x for x in *things
4-> [x for x in *things] 4_ = -> [x for x in *things]
5 5
6 6
7-- doesn't make sense on purpose 7-- doesn't make sense on purpose
@@ -14,7 +14,7 @@ do
14do 14do
15 return {x,y for x,y in *things} 15 return {x,y for x,y in *things}
16 16
17-> 17_ = ->
18 if a 18 if a
19 if a 19 if a
20 a 20 a
@@ -49,7 +49,7 @@ do
49 else 49 else
50 b 50 b
51 51
52-> a\b 52_ = -> a\b
53do a\b 53do a\b
54 54
55 55