x/tools/gopls: support type parameters for function literal snippet completions #50623
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
Given the following code:
The current completion that gopls gives for the
func(...) {}
snippet option is:func(s T) {}
, but that is incorrect as T is not really valid. The correct solution would be whatever type was instantiated at compile time, so the completion in the example above should befunc(s string) {}
The text was updated successfully, but these errors were encountered: