diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-01-23 14:35:14 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-01-23 14:35:14 +0800 |
| commit | 7ac3519dc40bb6f6ab979c9cd35fd585f25d1c25 (patch) | |
| tree | 024fabcf12638dbd4cb9fe6c58251f9227fc9380 /spec/inputs/destructure.moon | |
| parent | 782334d95720819f216004e0120ea84ba2c43afb (diff) | |
| download | yuescript-7ac3519dc40bb6f6ab979c9cd35fd585f25d1c25.tar.gz yuescript-7ac3519dc40bb6f6ab979c9cd35fd585f25d1c25.tar.bz2 yuescript-7ac3519dc40bb6f6ab979c9cd35fd585f25d1c25.zip | |
fix Moonscript issue 156, update new 'import' functions.
Diffstat (limited to 'spec/inputs/destructure.moon')
| -rw-r--r-- | spec/inputs/destructure.moon | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/inputs/destructure.moon b/spec/inputs/destructure.moon index 2509968..5bc7810 100644 --- a/spec/inputs/destructure.moon +++ b/spec/inputs/destructure.moon | |||
| @@ -95,6 +95,11 @@ _ = (z) -> | |||
| 95 | 95 | ||
| 96 | do | 96 | do |
| 97 | z = "oo" | 97 | z = "oo" |
| 98 | (k) -> | 98 | _ = (k) -> |
| 99 | {a,b,c} = z | 99 | {a,b,c} = z |
| 100 | 100 | ||
| 101 | do | ||
| 102 | {function:{end:endVar}} = thing | ||
| 103 | |||
| 104 | do | ||
| 105 | {if:{a,b,c}} = thing | ||
