diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-10-08 13:01:18 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-10-08 13:01:18 +0800 |
| commit | 97bbe98289fb74c7cf2d9793b80a1a27b4146045 (patch) | |
| tree | 4bee0dded55bad28f6822b6e2dd3ea5251c66ae2 /spec/inputs/using.mp | |
| parent | 5b656d2913e4f9f0017698ec835ce4ddda1dc81f (diff) | |
| download | yuescript-97bbe98289fb74c7cf2d9793b80a1a27b4146045.tar.gz yuescript-97bbe98289fb74c7cf2d9793b80a1a27b4146045.tar.bz2 yuescript-97bbe98289fb74c7cf2d9793b80a1a27b4146045.zip | |
change file extension moonp.
Diffstat (limited to 'spec/inputs/using.mp')
| -rw-r--r-- | spec/inputs/using.mp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/inputs/using.mp b/spec/inputs/using.mp new file mode 100644 index 0000000..fe0a433 --- /dev/null +++ b/spec/inputs/using.mp | |||
| @@ -0,0 +1,22 @@ | |||
| 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 | |||
| 22 | |||
