mirror of
https://github.com/golang/go
synced 2024-11-05 17:16:10 -07:00
65b5a8eca7
This peculiar case arose in range statements but there are other contexts and one turned up in the auto-generated translation of the compiler. Take care of it always. for i := 0; i < 0; func() {i++; q=q.Link}() { ... } That code has been given the obvious rewrite but we should still handle it. Odd but easy to fix (tricky to test). Fixes #10269. Change-Id: I66e1404eb24da15a24be7f67403e19ed66fba0a7 Reviewed-on: https://go-review.googlesource.com/8284 Reviewed-by: Robert Griesemer <gri@golang.org> |
||
---|---|---|
.. | ||
main.go | ||
test.go |