Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: wrong line number in redeclaration error #20415
The conflicting "previous declaration" is at line 7, not line 11.
This is reduced from a much larger example; I was very confused for a bit as to how one global declaration could possibly be conflicting with a closure parameter name. I had to guess to look for a different global variable by hand.
And according to the code Maury, eaf02e1 seems to be the father of the regression: