Commit b855b313 authored by Hugo Moreau's avatar Hugo Moreau

global: resetting correctly lhs

Left hand-hand side range reset correctly.

 * transform/global.go : Here.
parent 0fd91a85
Pipeline #26273 failed with stage
in 42 seconds
......@@ -114,7 +114,7 @@ func (t *Global) Pre(meta *Meta, v *Visitor) bool {
node.Lhs = node.Lhs[:len(node.Lhs)-1]
copy(node.Rhs[i:], node.Rhs[i+1:])
node.Rhs = node.Rhs[:len(node.Rhs)-1]
i = 0
i = -1
} else {
c.Replace(expr)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment