cgen: fix tests

pull/4125/head
Alexander Medvednikov 2020-03-26 22:28:24 +01:00
parent f0334b2e12
commit 9185de3fb7
1 changed files with 1 additions and 1 deletions

View File

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