v/vlib/v/tests/array_type_alias_test.v

7 lines
81 B
V

type Test = []int
fn test_index() {
t := Test([2,4])
assert t[1] == 4
}