spec: constraint type inference for struct fields #57270
Labels
FrozenDueToAge
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
What did you do?
https://go.dev/play/p/RbzMxIySi3f
What did you expect to see?
Compiles.
What did you see instead?
If we modify the code above to the following, it compiles:
https://go.dev/play/p/taePA8Kizz1
The text was updated successfully, but these errors were encountered: