x/tools/cmd/bundle: fails to rename references to embedded generic structs #60647
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using?
What did you do?
I ran the command
bundle -o bundled.go ./lib
wherelib
is a folder containing a single file with this code (see link)What did you expect to see?
I expected
bundle
to produce this code (see link). Note in particular line 22:What did you see instead?
bundle
produced this code (see link) which does not compile:The problem is that
bundle
failed to rename the field selector referring to the embedded generic structStack
in line 22:I have had similar problems running
bundle
on other programs featuring embedded generic structs.The text was updated successfully, but these errors were encountered: