diff options
author | Li Jin <dragon-fly@qq.com> | 2020-01-10 16:30:34 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-01-10 16:30:34 +0800 |
commit | 52a6536103f46c26a3ba9b149b0fe7b40d524d8c (patch) | |
tree | 67e4759f8e1ea922079d0e162d84ecba5e558261 /spec/inputs/using.moon | |
parent | 975167856ed0b11c2ede03c6eb750ca4e4a6a7fc (diff) | |
download | yuescript-52a6536103f46c26a3ba9b149b0fe7b40d524d8c.tar.gz yuescript-52a6536103f46c26a3ba9b149b0fe7b40d524d8c.tar.bz2 yuescript-52a6536103f46c26a3ba9b149b0fe7b40d524d8c.zip |
update.
Diffstat (limited to 'spec/inputs/using.moon')
-rw-r--r-- | spec/inputs/using.moon | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/inputs/using.moon b/spec/inputs/using.moon new file mode 100644 index 0000000..55a16a7 --- /dev/null +++ b/spec/inputs/using.moon | |||
@@ -0,0 +1,21 @@ | |||
1 | |||
2 | hello = "hello" | ||
3 | world = "world" | ||
4 | |||
5 | (using nil) -> | ||
6 | hello = 3223 | ||
7 | |||
8 | (a using nil) -> | ||
9 | hello = 3223 | ||
10 | a = 323 | ||
11 | |||
12 | (a,b,c using a,b,c) -> | ||
13 | a,b,c = 1,2,3 | ||
14 | world = 12321 | ||
15 | |||
16 | (a,e,f using a,b,c, hello) -> | ||
17 | a,b,c = 1,2,3 | ||
18 | hello = 12321 | ||
19 | world = "yeah" | ||
20 | |||
21 | |||