1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/v/parser/tests/nested_defer.vv

15 lines
125 B
V

fn test1() int {
mut a := 0
defer {
a = 12
defer {
a = 13
}
}
return a
fn main() {
x := test1()
println(x)
}