aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/v/checker/tests/enum_as_int_err.vv
blob: 47605ae017ad4a012c62fb609a5bc88741042f53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
enum Color {
	red
	blue
}

fn main() {
	mut color := Color.red
	mut foo := 1
	color = 1
	foo = Color.red
	println(color == 0)
	_ = foo
}