Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfc committed Feb 19, 2024
1 parent 93e5cc4 commit fe96f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cl/stmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,10 @@ func compileRangeStmt(ctx *blockCtx, v *ast.RangeStmt) {
rec.Scope(v, cb.Scope())
}
cb.RangeAssignThen(pos) // TODO: need NewScope for body
cb = cb.VBlock()
if len(defineNames) > 0 {
defNames(ctx, defineNames, cb.Scope())
}
cb = cb.VBlock()
compileStmts(ctx, v.Body.List)
cb.SetComments(comments, once)
setBodyHandler(ctx)
Expand Down

0 comments on commit fe96f37

Please sign in to comment.