aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/v/fmt/tests/array_slices_input.vv
blob: d70add584164a9bf6c78eba527d187461a569526 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn    fn_contains_index_expr()  {
 arr := [1, 2, 3, 4,   5]
    a := 1 in arr[ 0.. ]
_ := a
  _  := 1  in arr[ ..2  ]
      _ := 1 in arr[1..3]
   d :=  arr[2]
     _ := d
     _ := arr[2 ..]
 _ := arr[.. 2 ]
   _ := arr[ 1 .. 3]
}