v2 / vlib / v / checker / tests / enum_field_overflow.out
13 lines · 13 sloc · 521 bytes · c221b3226b50b40472864ab261e781a44bf6a5b9
Raw
1vlib/v/checker/tests/enum_field_overflow.vv:3:10: error: enum value `2147483647` overflows the enum type `i32`, values of which have to be in [-2147483648, 2147483647]
2 1 | enum Color as i32 {
3 2 | red
4 3 | green = 2147483647
5 | ~~~~~~~~~~
6 4 | blue
7 5 | }
8vlib/v/checker/tests/enum_field_overflow.vv:4:2: error: enum value overflows type `i32`, which has a maximum value of 2147483647
9 2 | red
10 3 | green = 2147483647
11 4 | blue
12 | ~~~~
13 5 | }
14