aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/parser/tests/nested_defer.vv
blob: 7abc2d3fe6becc74da7fcfabf4f763a07a07597a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn test1() int {
	mut a := 0
	defer {
		a = 12
		defer {
			a = 13
		}
	}
	return a

fn main() {
	x := test1()
	println(x)
}