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

fix mut_test.v

This commit is contained in:
Alexander Medvednikov 2019-08-11 22:45:18 +03:00
parent 4d44de7685
commit 3c6a11eb0b

View File

@ -6,7 +6,7 @@ fn foo(b int, a mut []int) {
// TODO
fn test_mut() {
mut numbers := [1,2,3]
foo(7, numbers)
foo(7, mut numbers)
//assert a.len == 4
assert numbers[0] == 7
//assert a[3] == 4