It works if from is specified as offset, in which case rename can figure out which packages are affected, but if it's specified as main.V.T form, it failed to figure out the original package of the embedded field is also affected.
The text was updated successfully, but these errors were encountered:
josharian
changed the title
go.tools/refactor/rename: panic when renaming type embedded in another package
x/tools/refactor/rename: panic when renaming type embedded in another package
Aug 5, 2015
This is similar to #8924
Following is the regression test:
Stacktrace:
It works if from is specified as
offset
, in which case rename can figure out which packages are affected, but if it's specified asmain.V.T
form, it failed to figure out the original package of the embedded field is also affected.The text was updated successfully, but these errors were encountered: