x/tools/gopls/internal/analysis/modernize: minmax generates incorrect transformation #71721
Labels
BugReport
Issues describing a possible bug in the Go implementation.
gopls/analysis
Issues related to running analysis in gopls
Refactoring
Issues related to refactoring tools
Milestone
(Splitting out of #70815 (comment) on behalf of @spencerschrock.)
Currently at HEAD (44b61a1d174cc06329b20f5de60c2b0c800741a4):
main.go:7:5: if/else statement can be modernized using max
Applying the suggested fix doesn't yield an equivalent result:
The text was updated successfully, but these errors were encountered: