21 lines
684 B
Plaintext
21 lines
684 B
Plaintext
vlib/v/checker/tests/cast_err.v:3:11: error: cannot cast to bool - use e.g. `some_int != 0` instead
|
|
1 | fn test_bool_cast() {
|
|
2 | v := 3
|
|
3 | _ = bool(v)
|
|
| ^
|
|
4 | _ = bool(&v)
|
|
5 | _ = bool([2])
|
|
vlib/v/checker/tests/cast_err.v:4:11: error: cannot cast to bool - use e.g. `some_int != 0` instead
|
|
2 | v := 3
|
|
3 | _ = bool(v)
|
|
4 | _ = bool(&v)
|
|
| ^
|
|
5 | _ = bool([2])
|
|
6 | }
|
|
vlib/v/checker/tests/cast_err.v:5:11: error: cannot cast to bool - use e.g. `some_int != 0` instead
|
|
3 | _ = bool(v)
|
|
4 | _ = bool(&v)
|
|
5 | _ = bool([2])
|
|
| ~~~
|
|
6 | }
|