| 1 | vlib/v/checker/tests/for_in_same_var_err.vv:1:10: error: in a `for x in <range>` loop, the key or value iteration variable `x` can not be the same as the low variable |
| 2 | 1 | for x in x .. 10 { |
| 3 | | ^ |
| 4 | 2 | dump(x) |
| 5 | 3 | } |
| 6 | vlib/v/checker/tests/for_in_same_var_err.vv:5:15: error: in a `for x in <range>` loop, the key or value iteration variable `y` can not be the same as the high variable |
| 7 | 3 | } |
| 8 | 4 | |
| 9 | 5 | for y in 0 .. y { |
| 10 | | ^ |
| 11 | 6 | dump(y) |
| 12 | 7 | } |
| 13 | vlib/v/checker/tests/for_in_same_var_err.vv:9:10: error: in a `for x in <range>` loop, the key or value iteration variable `z` can not be the same as the low variable |
| 14 | 7 | } |
| 15 | 8 | |
| 16 | 9 | for z in z .. z { |
| 17 | | ^ |
| 18 | 10 | dump(z) |
| 19 | 11 | } |
| 20 | vlib/v/checker/tests/for_in_same_var_err.vv:13:10: error: in a `for x in array` loop, the key or value iteration variable `w` can not be the same as the low variable |
| 21 | 11 | } |
| 22 | 12 | |
| 23 | 13 | for w in w { |
| 24 | | ^ |
| 25 | 14 | dump(w) |
| 26 | 15 | } |
| 27 | vlib/v/checker/tests/for_in_same_var_err.vv:14:7: error: dump expression can not be void |
| 28 | 12 | |
| 29 | 13 | for w in w { |
| 30 | 14 | dump(w) |
| 31 | | ^ |
| 32 | 15 | } |
| 33 | 16 | |
| 34 | vlib/v/checker/tests/for_in_same_var_err.vv:17:13: error: in a `for x in array` loop, the key or value iteration variable `_` can not be the same as the low variable |
| 35 | 15 | } |
| 36 | 16 | |
| 37 | 17 | for k, _ in k { |
| 38 | | ^ |
| 39 | 18 | dump(k) |
| 40 | 19 | } |
| 41 | vlib/v/checker/tests/for_in_same_var_err.vv:17:13: error: for in: cannot index `int` |
| 42 | 15 | } |
| 43 | 16 | |
| 44 | 17 | for k, _ in k { |
| 45 | | ^ |
| 46 | 18 | dump(k) |
| 47 | 19 | } |
| 48 | |