mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
8 lines
133 B
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
|
|
}
|