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

cgen: fix tests

This commit is contained in:
Alexander Medvednikov 2020-03-26 22:28:24 +01:00
parent f0334b2e12
commit 9185de3fb7

View File

@ -1548,7 +1548,7 @@ fn (g mut Gen) index_expr(node ast.IndexExpr) {
}
if g.is_assign_expr && !is_selector {
g.is_array_set = true
g.write('/*S $g.assign_op.str() */array_set(&')
g.write('array_set(&')
g.expr(node.left)
g.write(', ')
g.expr(node.index)