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

cgen: fix for mut val and enable the test

This commit is contained in:
Alexander Medvednikov
2020-10-14 13:34:49 +02:00
parent 25947a7b23
commit 9355c60b4d
3 changed files with 10 additions and 13 deletions

View File

@@ -56,12 +56,10 @@ fn test_for_char_in_map() {
}
fn test_mut_for() {
/*
mut vals := [1, 2, 3]
for mut val in vals {
(*val)++
}
assert vals == [2, 3, 4]
println(vals)
*/
}