14 lines
496 B
Plaintext
14 lines
496 B
Plaintext
vlib/v/checker/tests/enum_as_int_err.vv:9:10: error: cannot assign to `color`: expected `Color`, not `int literal`
|
|
7 | mut color := Color.red
|
|
8 | mut foo := 1
|
|
9 | color = 1
|
|
| ^
|
|
10 | foo = Color.red
|
|
11 | println(color == 0)
|
|
vlib/v/checker/tests/enum_as_int_err.vv:11:2: error: cannot assign to `foo`: expected `int`, not `Color`
|
|
9 | color = 1
|
|
10 | foo = Color.red
|
|
11 | println(color == 0)
|
|
| ~~~~~~~
|
|
12 | }
|