cmd/compile: did not infer implementation[actual] passed to interface[generic] #56294
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
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
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes. it does
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go.dev/play/p/iTbFKExhVeZ
What did you expect to see?
B(&Imp[int64]{})
doesn't work and showcannot infer T
error butB[int64](&Imp[int64]{})
works. But it can auto infer. in this example, theT
ofB
is alwaysint64
The text was updated successfully, but these errors were encountered: