diff options
| author | Li Jin <dragon-fly@qq.com> | 2021-10-12 10:04:44 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2021-10-12 10:04:44 +0800 |
| commit | 60a979e224f26117f5be82bfca757a2483cef0fd (patch) | |
| tree | 7c6af44f6dcada1f23979b820ba830251997b161 /spec/outputs/using.lua | |
| parent | a19b242cbaf53721b20a3163dd06f43e9ef2b487 (diff) | |
| download | yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.tar.gz yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.tar.bz2 yuescript-60a979e224f26117f5be82bfca757a2483cef0fd.zip | |
fix test.
Diffstat (limited to '')
| -rw-r--r-- | spec/outputs/using.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/spec/outputs/using.lua b/spec/outputs/using.lua new file mode 100644 index 0000000..6d0d888 --- /dev/null +++ b/spec/outputs/using.lua | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | local hello = "hello" | ||
| 2 | local world = "world" | ||
| 3 | local _ | ||
| 4 | _ = function() | ||
| 5 | local hello = 3223 | ||
| 6 | end | ||
| 7 | _ = function(a) | ||
| 8 | local hello = 3223 | ||
| 9 | a = 323 | ||
| 10 | end | ||
| 11 | _ = function(a, b, c) | ||
| 12 | a, b, c = 1, 2, 3 | ||
| 13 | local world = 12321 | ||
| 14 | end | ||
| 15 | _ = function(a, e, f) | ||
| 16 | local b, c | ||
| 17 | a, b, c = 1, 2, 3 | ||
| 18 | hello = 12321 | ||
| 19 | local world = "yeah" | ||
| 20 | end | ||
| 21 | _ = function() | ||
| 22 | local hello = hello or 2 | ||
| 23 | end | ||
