x/tools/gopls: extract-method changes func param from ...T to []T #63287
Labels
gopls
Issues related to the Go language server, gopls.
Refactoring
Issues related to refactoring tools
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Given:
an extract-method operation on the block around println yields:
which doesn't compile because the ...any has become []any. An ellipsis token has clearly been dropped when cloning/synthesizing a tree (or perhaps token.Pos information was zeroed out, which is not semantics-preserving!).
The text was updated successfully, but these errors were encountered: