-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go/types, types2: handle embedding of type parameters correctly #47127
Comments
I thought we had agreed to not support embedding of plain type parameters, and to only support embedding of type literals that refer to type parameters. Am I misremembering? |
I believe you're correct. Yesterday I filed whatever looked like it needed attention. Clearly this needs attention as in: report an error at the embedding location. |
Change https://golang.org/cl/334151 mentions this issue: |
…ype parameters is not permitted For #47127. Change-Id: Ie979ff56ae7c2dd0e5ce0ff39588f98ae68b5ee9 Reviewed-on: https://go-review.googlesource.com/c/go/+/334151 Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
Change https://golang.org/cl/335082 mentions this issue: |
produces
This should either be permitted or embedding of
E1
in theE2
constraint should be explicitly forbidden.cc: @findleyr
The text was updated successfully, but these errors were encountered: