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/local.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/local.moon')
| -rw-r--r-- | spec/inputs/local.moon | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/spec/inputs/local.moon b/spec/inputs/local.moon index f14f575..33251a9 100644 --- a/spec/inputs/local.moon +++ b/spec/inputs/local.moon | |||
| @@ -1,94 +1,94 @@ | |||
| 1 | 1 | ||
| 2 | do | 2 | do |
| 3 | local a | 3 | local a |
| 4 | local a,b,c | 4 | local a,b,c |
| 5 | 5 | ||
| 6 | b,g = 23232 | 6 | b,g = 23232 |
| 7 | 7 | ||
| 8 | 8 | ||
| 9 | do | 9 | do |
| 10 | x = 1212 | 10 | x = 1212 |
| 11 | something = -> | 11 | something = -> |
| 12 | local x | 12 | local x |
| 13 | x = 1212 | 13 | x = 1212 |
| 14 | 14 | ||
| 15 | do | 15 | do |
| 16 | local * | 16 | local * |
| 17 | y = 2323 | 17 | y = 2323 |
| 18 | z = 2323 | 18 | z = 2323 |
| 19 | 19 | ||
| 20 | do | 20 | do |
| 21 | local * | 21 | local * |
| 22 | print "Nothing Here!" | 22 | print "Nothing Here!" |
| 23 | 23 | ||
| 24 | do | 24 | do |
| 25 | local ^ | 25 | local ^ |
| 26 | x = 3434 | 26 | x = 3434 |
| 27 | y = 3434 | 27 | y = 3434 |
| 28 | X = 3434 | 28 | X = 3434 |
| 29 | Y = "yeah" | 29 | Y = "yeah" |
| 30 | 30 | ||
| 31 | do | 31 | do |
| 32 | local ^ | 32 | local ^ |
| 33 | x,y = "a", "b" | 33 | x,y = "a", "b" |
| 34 | 34 | ||
| 35 | do | 35 | do |
| 36 | local * | 36 | local * |
| 37 | x,y = "a", "b" | 37 | x,y = "a", "b" |
| 38 | 38 | ||
| 39 | 39 | ||
| 40 | do | 40 | do |
| 41 | local * | 41 | local * |
| 42 | if something | 42 | if something |
| 43 | x = 2323 | 43 | x = 2323 |
| 44 | 44 | ||
| 45 | do | 45 | do |
| 46 | local * | 46 | local * |
| 47 | do | 47 | do |
| 48 | x = "one" | 48 | x = "one" |
| 49 | 49 | ||
| 50 | x = 100 | 50 | x = 100 |
| 51 | 51 | ||
| 52 | do | 52 | do |
| 53 | x = "two" | 53 | x = "two" |
| 54 | 54 | ||
| 55 | do | 55 | do |
| 56 | local * | 56 | local * |
| 57 | k = if what | 57 | k = if what |
| 58 | 10 | 58 | 10 |
| 59 | x = 100 | 59 | x = 100 |
| 60 | 60 | ||
| 61 | {:a,:b, :c} = y | 61 | {:a,:b, :c} = y |
| 62 | 62 | ||
| 63 | 63 | ||
| 64 | do | 64 | do |
| 65 | local * | 65 | local * |
| 66 | 66 | ||
| 67 | a = 100 | 67 | a = 100 |
| 68 | print "hi" | 68 | print "hi" |
| 69 | b = 200 | 69 | b = 200 |
| 70 | 70 | ||
| 71 | local * | 71 | local * |
| 72 | c = 100 | 72 | c = 100 |
| 73 | print "hi" | 73 | print "hi" |
| 74 | d = 200 | 74 | d = 200 |
| 75 | d = 2323 | 75 | d = 2323 |
| 76 | 76 | ||
| 77 | 77 | ||
| 78 | do | 78 | do |
| 79 | local ^ | 79 | local ^ |
| 80 | lowercase = 5 | 80 | lowercase = 5 |
| 81 | Uppercase = 3 | 81 | Uppercase = 3 |
| 82 | 82 | ||
| 83 | class One | 83 | class One |
| 84 | Five = 6 | 84 | Five = 6 |
| 85 | 85 | ||
| 86 | class Two | 86 | class Two |
| 87 | class No | 87 | class No |
| 88 | 88 | ||
| 89 | do | 89 | do |
| 90 | local * | 90 | local * |
| 91 | -- this generates a nil value in the body | 91 | -- this generates a nil value in the body |
| 92 | for a in *{} do _ = a | 92 | for a in *{} do _ = a |
| 93 | 93 | ||
| 94 | g = 2323 -- test if anything leaked | 94 | g = 2323 -- test if anything leaked |
