go/types: panic in new logic in recordCommaOkTypes #59371
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
release-blocker
Milestone
Just hit this panic in gopls, using
go version devel go1.21-a7fd2fab0e Fri Mar 31 16:05:14 2023 +0000 linux/amd64
Given that this logic changed in https://go.dev/cl/478218 (and surrounding CLs), it seems likely that this is a new panic in go/types. (though I will caveat that a lot of logic in gopls has changed recently with respect to type checking).
Unfortunately, I was not able to reproduce by replaying my editing session (likely due batching of keystrokes in the replay), so we'll have to stare at this. For starters, we should separate those assertions onto separate lines.
CC @griesemer
The text was updated successfully, but these errors were encountered: