aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/do.lua
blob: 96d10225d9eeb23e611171318fc946b39dfb774e (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
do
	print("hello")
	print("world")
end
local x
do
	print("hello")
	x = print("world")
end
local y
do
	local things = "shhh"
	y = function()
		return "hello: " .. things
	end
end
local _
_ = function()
	if something then
		do
			return "yeah"
		end
	end
end
local t = {
	y = (function()
		local number = 100
		return function(x)
			return x + number
		end
	end)()
}
return function(y, k)
	if y == nil then
		y = ((function()
			x = 10 + 2
			return x
		end)())
	end
	if k == nil then
		do
			k = "nothing"
		end
	end
	do
		return "uhhh"
	end
end