aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/fmt/tests/array_slices_expected.vv
blob: b0bcee7b034f45f6ce7c92124ba283e383042440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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]
}