cmd/go2go: misleading error for embedded struct field of type parameter #39774
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
https://go2goplay.golang.org/p/596K-mmE-Jm was an attempt to define a generic test case equivalent to https://play.golang.org/p/f8yMpNN3aDn:
I did not expect https://go2goplay.golang.org/p/596K-mmE-Jm to compile, but the error message that it gives seems wrong:
compared with
for the non-generic version.
I expected the go2go version to instead produce some sort of error message referring to the fact that
T
could be an interface type.The text was updated successfully, but these errors were encountered: