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/bubbling.moon | |
| parent | 975167856ed0b11c2ede03c6eb750ca4e4a6a7fc (diff) | |
| download | yuescript-52a6536103f46c26a3ba9b149b0fe7b40d524d8c.tar.gz yuescript-52a6536103f46c26a3ba9b149b0fe7b40d524d8c.tar.bz2 yuescript-52a6536103f46c26a3ba9b149b0fe7b40d524d8c.zip | |
update.
Diffstat (limited to 'spec/inputs/bubbling.moon')
| -rw-r--r-- | spec/inputs/bubbling.moon | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/spec/inputs/bubbling.moon b/spec/inputs/bubbling.moon new file mode 100644 index 0000000..d1004f9 --- /dev/null +++ b/spec/inputs/bubbling.moon | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | |||
| 2 | -- vararg bubbling | ||
| 3 | f = (...) -> #{...} | ||
| 4 | |||
| 5 | dont_bubble = -> | ||
| 6 | [x for x in ((...)-> print ...)("hello")] | ||
| 7 | |||
| 8 | k = [x for x in ((...)-> print ...)("hello")] | ||
| 9 | |||
| 10 | j = for i=1,10 | ||
| 11 | (...) -> print ... | ||
| 12 | |||
| 13 | -- bubble me | ||
| 14 | |||
| 15 | m = (...) -> | ||
| 16 | [x for x in *{...} when f(...) > 4] | ||
| 17 | |||
| 18 | x = for i in *{...} do i | ||
| 19 | y = [x for x in *{...}] | ||
| 20 | z = [x for x in hallo when f(...) > 4] | ||
| 21 | |||
| 22 | |||
| 23 | a = for i=1,10 do ... | ||
| 24 | |||
| 25 | b = for i=1,10 | ||
| 26 | -> print ... | ||
| 27 | |||
| 28 | |||
