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

parser: new array init syntax

This commit is contained in:
Alexander Medvednikov
2020-04-26 17:28:43 +02:00
parent cd45e9ea48
commit f23948010a
4 changed files with 73 additions and 32 deletions

View File

@@ -724,6 +724,7 @@ fn test_left_shift_precendence() {
}
fn test_array_with_cap() {
a := []int{cap:10, len:1 }
//assert a.len == 1
a4 := []int{cap:10, len:1 }
assert a4.len == 1
assert a4.cap == 10
}