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/existential.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/existential.moon')
| -rw-r--r-- | spec/inputs/existential.moon | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/spec/inputs/existential.moon b/spec/inputs/existential.moon index 97e8de0..eaa3266 100644 --- a/spec/inputs/existential.moon +++ b/spec/inputs/existential.moon | |||
| @@ -1,8 +1,20 @@ | |||
| 1 | if {:x} = a?.if?\then?(123)? @?\function 998 | 1 | |
| 2 | f?! | ||
| 3 | |||
| 4 | x = tab?.value | ||
| 5 | |||
| 6 | print abc?["hello world"]?.xyz | ||
| 7 | |||
| 8 | if print and x? | ||
| 2 | print x | 9 | print x |
| 3 | 10 | ||
| 11 | @?\func 998 | ||
| 12 | |||
| 4 | with abc?!\func?! | 13 | with abc?!\func?! |
| 5 | if \p? "abc" | 14 | if \p? "abc" |
| 6 | return 123 | 15 | return 123 |
| 7 | 16 | ||
| 8 | @?\func 998 | 17 | if {:x} = a?.if?\then?(123)? @?\function 998 |
| 18 | print x | ||
| 19 | |||
| 20 | |||
