You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vlib/v/checker/tests/index_expr_implicit_int_downcast_err.vv:10:12: error: cannot use `u64` as string index type `int`, use an explicit cast like `int(expr)`
2
-
8 | _ = s[int(idx_u64)]
3
-
9 | _ = a[idx_u32]
4
-
10 | println(s[idx_u64])
5
-
| ~~~~~~~
6
-
11 | println(a[idx_i64])
7
-
12 | println(a[idx_usize..])
8
-
vlib/v/checker/tests/index_expr_implicit_int_downcast_err.vv:11:12: error: cannot use `i64` as index type `int`, use an explicit cast like `int(expr)`
9
-
9 | _ = a[idx_u32]
10
-
10 | println(s[idx_u64])
11
-
11 | println(a[idx_i64])
12
-
| ~~~~~~~
13
-
12 | println(a[idx_usize..])
14
-
13 | }
15
-
vlib/v/checker/tests/index_expr_implicit_int_downcast_err.vv:12:12: error: cannot use `usize` as index type `int`, use an explicit cast like `int(expr)`
16
-
10 | println(s[idx_u64])
17
-
11 | println(a[idx_i64])
18
-
12 | println(a[idx_usize..])
1
+
vlib/v/checker/tests/index_expr_implicit_int_downcast_err.vv:4:12: error: cannot use `usize` as index type `int`, use an explicit cast like `int(expr)`
0 commit comments