1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: update enum test

This commit is contained in:
Alexander Medvednikov 2021-12-03 08:43:03 +03:00
parent eca78a2906
commit 209747d03e
2 changed files with 1 additions and 8 deletions

View File

@ -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 | }

View File

@ -2,7 +2,7 @@ module main
enum Color {
green = 'green'
yellow = 1+1
yellow
blue
}