aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/with_scope_shadow.lua
blob: 72abe955db4e4ec4b6bc701a5beff524167026b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
local target = {
	val = 1,
	add = function(self, n)
		self.val = self.val + n
		return self.val
	end
}
local result
do
	local val = 100
	add(2)
	result = target
end
return print(result, target.val)