diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-01-25 17:48:03 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-01-25 17:48:03 +0800 |
| commit | ed317e62eb1cf98fde4461fc90c6cb1045ebc7e8 (patch) | |
| tree | 427e365939da39f31dbfa755675fb60bb141583d /spec/inputs/return.moon | |
| parent | 4827d200604a086e2ad94edb4257c3abc7a3c4fc (diff) | |
| download | yuescript-ed317e62eb1cf98fde4461fc90c6cb1045ebc7e8.tar.gz yuescript-ed317e62eb1cf98fde4461fc90c6cb1045ebc7e8.tar.bz2 yuescript-ed317e62eb1cf98fde4461fc90c6cb1045ebc7e8.zip | |
fix Moonscript issue 375.
Diffstat (limited to 'spec/inputs/return.moon')
| -rw-r--r-- | spec/inputs/return.moon | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/spec/inputs/return.moon b/spec/inputs/return.moon index 98c3104..f170ffd 100644 --- a/spec/inputs/return.moon +++ b/spec/inputs/return.moon | |||
| @@ -6,48 +6,48 @@ _ = -> [x for x in *things] | |||
| 6 | 6 | ||
| 7 | -- doesn't make sense on purpose | 7 | -- doesn't make sense on purpose |
| 8 | do | 8 | do |
| 9 | return x for x in *things | 9 | return x for x in *things |
| 10 | 10 | ||
| 11 | do | 11 | do |
| 12 | return [x for x in *things] | 12 | return [x for x in *things] |
| 13 | 13 | ||
| 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 |
| 21 | else | 21 | else |
| 22 | b | 22 | b |
| 23 | elseif b | 23 | elseif b |
| 24 | if a | 24 | if a |
| 25 | a | 25 | a |
| 26 | else | 26 | else |
| 27 | b | 27 | b |
| 28 | else | 28 | else |
| 29 | if a | 29 | if a |
| 30 | a | 30 | a |
| 31 | else | 31 | else |
| 32 | b | 32 | b |
| 33 | 33 | ||
| 34 | 34 | ||
| 35 | do | 35 | do |
| 36 | return if a | 36 | return if a |
| 37 | if a | 37 | if a |
| 38 | a | 38 | a |
| 39 | else | 39 | else |
| 40 | b | 40 | b |
| 41 | elseif b | 41 | elseif b |
| 42 | if a | 42 | if a |
| 43 | a | 43 | a |
| 44 | else | 44 | else |
| 45 | b | 45 | b |
| 46 | else | 46 | else |
| 47 | if a | 47 | if a |
| 48 | a | 48 | a |
| 49 | else | 49 | else |
| 50 | b | 50 | b |
| 51 | 51 | ||
| 52 | _ = -> a\b | 52 | _ = -> a\b |
| 53 | do a\b | 53 | do a\b |
