aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/with_scope_shadow.yue
blob: a0d58ccc6f008bf30872e51d33842026192cbab9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
target = {
	val: 1
	add: (n)=>
		@val += n
		@val
}

result = with target
	val = 100
	add 2

print result, target.val