aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/using.yue
blob: 31afaababddb1c3d380a66ceee02374986ef91ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

hello = "hello"
world = "world"

_ = (using nil) ->
	hello = 3223

_ = (a using nil) ->
	hello = 3223
	a = 323

_ = (a,b,c using a,b,c) ->
	a,b,c = 1,2,3
	world = 12321

_ = (a,e,f using a,b,c, hello) ->
	a,b,c = 1,2,3
	hello = 12321
	world = "yeah"

_ = (using nil) ->
	hello or= 2

do
	a = {}
	(using nil) <- _
	{x, y} = a

nil