v2 / vlib / v / checker / tests / bool_string_cast_err.out
12 lines · 12 sloc · 504 bytes · 0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1vlib/v/checker/tests/bool_string_cast_err.vv:2:10: error: cannot cast type `bool` to string, use `true.str()` instead.
2 1 | fn main() {
3 2 | println(string(true))
4 | ~~~~~~~~~~~~
5 3 | println(string(false))
6 4 | }
7vlib/v/checker/tests/bool_string_cast_err.vv:3:10: error: cannot cast type `bool` to string, use `false.str()` instead.
8 1 | fn main() {
9 2 | println(string(true))
10 3 | println(string(false))
11 | ~~~~~~~~~~~~~
12 4 | }
13