vxx2 / vlib / v / checker / tests / overflow_int_err.out
14 lines · 14 sloc · 565 bytes · 815104e5d08c0c89308e7383e85a1745818d63c5
Raw
1vlib/v/checker/tests/overflow_int_err.vv:4:7: error: overflow in implicit type `int`, use explicit type casting instead
2 2 | a := -2147483648
3 3 | b := 2147483647
4 4 | c := -2147483649
5 | ~~~~~~~~~~~
6 5 | d := 2147483648
7 6 | println(a)
8vlib/v/checker/tests/overflow_int_err.vv:5:7: error: overflow in implicit type `int`, use explicit type casting instead
9 3 | b := 2147483647
10 4 | c := -2147483649
11 5 | d := 2147483648
12 | ~~~~~~~~~~
13 6 | println(a)
14 7 | println(b)
15