aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/fmt/tests/static_mut_keep.vv
blob: 4d4d61b94ba38d2fdec86cb4999fc358411f2697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
[unsafe]
fn foo() int {
	mut static x := 42
	x++
	return x
}

[unsafe]
fn foo() int {
	static x := 42 // a immutable static is not very useful, but vfmt should support that too
	return x
}