mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: fix multi fixed arrays init (#7996)
This commit is contained in:
@ -1305,3 +1305,8 @@ fn test_array_of_map_insert() {
|
||||
println(x)
|
||||
assert '$x' == "[{}, {}, {'123': 123}, {}]"
|
||||
}
|
||||
|
||||
fn test_multi_fixed_array_init() {
|
||||
a := [3][3]int{}
|
||||
assert '$a' == '[[0, 0, 0], [0, 0, 0], [0, 0, 0]]'
|
||||
}
|
||||
|
Reference in New Issue
Block a user