x/tools/gopls: generic base type like pointer or any struct #59518
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
gopls version
1.20.3
go env
win11
What did you do?
In other language like c#, the type constraints can be "class",but in go there is no "struct"
I have some situation need generic link this:
type gen[T anystruct]strcut{}
type gen[T *anystruct]{}
sync.pool[T any]
What did you expect to see?
[T anystruct] but not [T interface]
sync.pool[T any] but not sync.pool which return interface
The text was updated successfully, but these errors were encountered: