checker: update enum test
parent
eca78a2906
commit
209747d03e
|
@ -5,10 +5,3 @@ vlib/v/checker/tests/enum_err.vv:4:13: error: default value for enum has to be a
|
|||
| ~~~~~~~
|
||||
5 | yellow = 1+1
|
||||
6 | blue
|
||||
vlib/v/checker/tests/enum_err.vv:5:14: error: default value for enum has to be an integer
|
||||
3 | enum Color {
|
||||
4 | green = 'green'
|
||||
5 | yellow = 1+1
|
||||
| ~~~
|
||||
6 | blue
|
||||
7 | }
|
||||
|
|
|
@ -2,7 +2,7 @@ module main
|
|||
|
||||
enum Color {
|
||||
green = 'green'
|
||||
yellow = 1+1
|
||||
yellow
|
||||
blue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue