1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/v/tests/fixed_array_literal_index_test.v

8 lines
133 B
V

fn test_fixed_array_literal_index() {
println([1]int{}[0])
assert [1]int{}[0] == 0
println([1, 2]![1])
assert [1, 2]![1] == 2
}