vxx2 / vlib / v / checker / tests / enum_cast.out
28 lines · 28 sloc · 1.31 KB · 121fa0e92d0995dcc95854f60bfc51a08a2c8043
Raw
1vlib/v/checker/tests/enum_cast.vv:17:19: warning: 12 does not represent a value of enum Color
2 15 | println(unsafe { Color(0) })
3 16 | println(unsafe { Color(10) })
4 17 | println(unsafe { Color(12) })
5 | ~~~~~~~~~
6 18 | println(unsafe { Color(-10) })
7 19 |
8vlib/v/checker/tests/enum_cast.vv:18:19: warning: -10 does not represent a value of enum Color
9 16 | println(unsafe { Color(10) })
10 17 | println(unsafe { Color(12) })
11 18 | println(unsafe { Color(-10) })
12 | ~~~~~~~~~~
13 19 |
14 20 | println(unsafe { Permissions(0b101) })
15vlib/v/checker/tests/enum_cast.vv:21:19: warning: 10 does not represent a value of enum Permissions
16 19 |
17 20 | println(unsafe { Permissions(0b101) })
18 21 | println(unsafe { Permissions(0b1010) })
19 | ~~~~~~~~~~~~~~~~~~~
20 22 | println(unsafe { Permissions(-1) })
21 23 | println(unsafe { Permissions(0) })
22vlib/v/checker/tests/enum_cast.vv:22:19: warning: -1 does not represent a value of enum Permissions
23 20 | println(unsafe { Permissions(0b101) })
24 21 | println(unsafe { Permissions(0b1010) })
25 22 | println(unsafe { Permissions(-1) })
26 | ~~~~~~~~~~~~~~~
27 23 | println(unsafe { Permissions(0) })
28 24 | }
29