diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-01-18 18:15:24 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-01-18 18:15:24 +0800 |
| commit | 8d1af508f4173e4af6a4ea98584c1a86619f6a20 (patch) | |
| tree | 0264c4b01f1152d8114cf46aea6fd773276c0b01 /spec/inputs/return.moon | |
| parent | f53ccb373efbf6f6f40284111df309e351c2c18f (diff) | |
| download | yuescript-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.moon | 8 |
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 | |||
| 14 | do | 14 | do |
| 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 |
| 53 | do a\b | 53 | do a\b |
| 54 | 54 | ||
| 55 | 55 | ||
