Join GitHub today
x/tools/gopls: undeclared name, "has no field" after converting function to method #36224
Please answer these questions before submitting your issue. Thanks!
What did you do?
I was swapping a function to a method by converting an argument to the receiver.
What did you expect to see?
What did you see instead?
Once I changed that and modified the function's uses, my global variables disappear from the package, and some methods stop working.