mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
15 lines
125 B
V
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)
|
|
}
|