go/parser: incorrectly allows parenthesized embedded types #51655
Labels
early-in-cycle
A change that should be done early in the 3 month dev cycle.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, and at tip.
What did you do?
https://go.dev/play/p/xOwV_SZwGCU
Parsed this
What did you expect to see?
An error
What did you see instead?
No error
I believe in the process of adding support for generics, we accidentally dropped this error. This has been present since at least Go 1.17, so (IMO) should be OK to fix in a patch release of Go 1.18, backported to Go 1.17.
CC @griesemer
The text was updated successfully, but these errors were encountered: