go/types, cmd/compile/internal/types2: type inference limitation leads to incorrect result for directed channel type constraint #65202
Labels
generics
Issue is related to generics
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
TypeInference
Issue is related to generic type inference
Milestone
Proposal Details
Think such code:
can be found here: https://go.dev/play/p/qNBK9KjxqrW
then
Chan(c)
producechan int does not satisfy ~<-chan int (chan int missing in ~<-chan int)
In my opinion, this is a flaw in generic design that should be supported
The text was updated successfully, but these errors were encountered: