1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/v/tests/array_type_alias_test.v
2021-01-05 19:17:18 +01:00

7 lines
81 B
V

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