aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/bubbling.moon
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs/bubbling.moon')
-rw-r--r--spec/inputs/bubbling.moon28
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
3f = (...) -> #{...}
4
5dont_bubble = ->
6 [x for x in ((...)-> print ...)("hello")]
7
8k = [x for x in ((...)-> print ...)("hello")]
9
10j = for i=1,10
11 (...) -> print ...
12
13-- bubble me
14
15m = (...) ->
16 [x for x in *{...} when f(...) > 4]
17
18x = for i in *{...} do i
19y = [x for x in *{...}]
20z = [x for x in hallo when f(...) > 4]
21
22
23a = for i=1,10 do ...
24
25b = for i=1,10
26 -> print ...
27
28