@xieyuschen requested issue #77248 to be considered for backport to the next 1.26 minor release.
@gopherbot please open backport issues.
The issue breaks the compatible behavior mentioned in loopvar docs. It's a corner case but I believe the use case(see background) is valid