-
Notifications
You must be signed in to change notification settings - Fork 18k
go/types: TypeName.IsAlias reports true for type parameters #49213
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
Comments
This is just an oversight, actually (I'd been meaning to look into the poor object string...) We just need to add a case to |
Change https://golang.org/cl/359656 mentions this issue: |
Change https://golang.org/cl/360294 mentions this issue: |
Change https://golang.org/cl/360334 mentions this issue: |
Change https://golang.org/cl/360335 mentions this issue: |
Change https://golang.org/cl/360336 mentions this issue: |
… TypeName.IsAlias For CL 359656 For golang/go#49213 Change-Id: I3ae7abe8acc0d8816e2029aa55e8bbaee1e05c94 Reviewed-on: https://go-review.googlesource.com/c/tools/+/360334 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Robert Findley <rfindley@google.com> Reviewed-by: Robert Griesemer <gri@golang.org> TryBot-Result: Go Bot <gobot@golang.org>
…names This is a port of CL 359656 from go/types to types2. For #49213. Change-Id: Ib98f9a344c1397af92e061cafd519ea374fd60bc Reviewed-on: https://go-review.googlesource.com/c/go/+/360294 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
For CL 359656 For golang/go#49213 Change-Id: Ib2c5d8fa60702baf07530226322a0a113af6b9e8 Reviewed-on: https://go-review.googlesource.com/c/tools/+/360335 Reviewed-by: Robert Griesemer <gri@golang.org> Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com>
Test program below prints:
type T = x.T₁ true *types.TypeParam
I'd expect it to print
false
instead oftrue
, becauseT
is not an alias./cc @griesemer @findleyr
The text was updated successfully, but these errors were encountered: