x/tools/gopls: segfault when renaming variable to error
#37963
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What did you do?
Start with:
https://play.golang.org/p/D9f3gVB1v_t
Then try to rename the variable
a
toerror
:What did you expect to see?
The variable
a
renamed toerror
What did you see instead?
Stacktrace
This only happens when renaming to
error
, I expect because it is a builtin.It also only happens if the variable is referenced more than once.
Build info
Go info
The text was updated successfully, but these errors were encountered: