From 209747d03ecdd4a65842261ee672094a593de1b2 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 3 Dec 2021 08:43:03 +0300 Subject: [PATCH] checker: update enum test --- vlib/v/checker/tests/enum_err.out | 7 ------- vlib/v/checker/tests/enum_err.vv | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/vlib/v/checker/tests/enum_err.out b/vlib/v/checker/tests/enum_err.out index 9256d7f6ea..38af35236d 100644 --- a/vlib/v/checker/tests/enum_err.out +++ b/vlib/v/checker/tests/enum_err.out @@ -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 | } diff --git a/vlib/v/checker/tests/enum_err.vv b/vlib/v/checker/tests/enum_err.vv index 1710b84006..3550a19f34 100644 --- a/vlib/v/checker/tests/enum_err.vv +++ b/vlib/v/checker/tests/enum_err.vv @@ -2,7 +2,7 @@ module main enum Color { green = 'green' - yellow = 1+1 + yellow blue }