generics: Confusion between interfaces and constraints #46359
Labels
FrozenDueToAge
generics
Issue is related to generics
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Is there any way of using constraints as return types where the value being returned is instantiated in the body of the function?
Or does this fall into Possible future step: permitting constraints as ordinary interface types?
From https://go2goplay.golang.org/p/S5ppLsCtMPv
The text was updated successfully, but these errors were encountered: