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

parser: disallow for mut in range (fix #12234) (#12277)

This commit is contained in:
Wertzui123
2021-10-27 13:55:36 +02:00
committed by GitHub
parent 6eaacd3391
commit ea6d2d53db
7 changed files with 14 additions and 5 deletions

View File

@ -15,7 +15,7 @@ struct array_buffer {
fn (mut a array_buffer) make_copy() {
if a.index_start != 0 || a.has_slice {
mut new_arr := JS.makeEmtpyJSArray()
for mut i in 0 .. a.len {
for i in 0 .. a.len {
#new_arr.push(a.val.get(i))
mut x := i