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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user