On Thu, Apr 23, 2020 at 9:35 AM Matthew Zimmerman <mzimmer...@gmail.com> wrote: > > Reported, thank you! > > https://github.com/golang/go/issues/38624
Thanks! Ian On Thu, Apr 23, 2020 at 12:16 PM Ian Lance Taylor <i...@golang.org> wrote: >> >> On Thu, Apr 23, 2020 at 7:30 AM Matthew Zimmerman <mzimmer...@gmail.com> >> wrote: >> > >> > I was really confused by this error for ~10 minutes or so. Usually when >> > this happens to me, I missed a closing/opening brace somewhere or I forgot >> > to add () after my anonymous function declaration to actually run it. >> > >> > This time though all the braces were lining up and I had () there >> > appropriately. I finally gave up on that error and started working on the >> > next one and when I looked there (using if instead of for with the range >> > operator) I realized I had a bug fixed it and my first error went away too. >> > >> > Not sure if this is anything to be too worried about, but I found it >> > confusing and wasn't sure if this was worth a bug report or not. >> > >> > It's easily reproducible: https://play.golang.org/p/DJKZqMtng4S >> > >> > Change line 13 from if to for and everything works. >> > >> > Great project/language, thanks for everyone's work on it! >> >> Thanks. Can you file a bug report for this at >> https://golang.org/issue ? I agree that we should do better here. >> >> Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcWVJGv4i0hdU_BKqREbFdvhZVK3sP3k-oRE7u8wHbVMMw%40mail.gmail.com.