mirror of
https://github.com/golang/go
synced 2024-11-13 13:11:07 -07:00
go/types, types2: fix test name (for debugging)
Change-Id: I982cf4da98af73ac41936a9d0b51588e3dbfd706 Reviewed-on: https://go-review.googlesource.com/c/go/+/594739 Reviewed-by: Robert Griesemer <gri@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Tim King <taking@google.com> Auto-Submit: Robert Griesemer <gri@google.com>
This commit is contained in:
parent
0509936823
commit
f234c9423b
@ -764,7 +764,7 @@ func TestUsesInfo(t *testing.T) {
|
||||
|
||||
// Uses of fields are instantiated.
|
||||
{`package s1; type N[A any] struct{ a A }; var f = N[int]{}.a`, `a`, `field a int`},
|
||||
{`package s1; type N[A any] struct{ a A }; func (r N[B]) m(b B) { r.a = b }`, `a`, `field a B`},
|
||||
{`package s2; type N[A any] struct{ a A }; func (r N[B]) m(b B) { r.a = b }`, `a`, `field a B`},
|
||||
|
||||
// Uses of methods are uses of the instantiated method.
|
||||
{`package m0; type N[A any] int; func (r N[B]) m() { r.n() }; func (N[C]) n() {}`, `n`, `func (m0.N[B]).n()`},
|
||||
|
@ -763,7 +763,7 @@ func TestUsesInfo(t *testing.T) {
|
||||
|
||||
// Uses of fields are instantiated.
|
||||
{`package s1; type N[A any] struct{ a A }; var f = N[int]{}.a`, `a`, `field a int`},
|
||||
{`package s1; type N[A any] struct{ a A }; func (r N[B]) m(b B) { r.a = b }`, `a`, `field a B`},
|
||||
{`package s2; type N[A any] struct{ a A }; func (r N[B]) m(b B) { r.a = b }`, `a`, `field a B`},
|
||||
|
||||
// Uses of methods are uses of the instantiated method.
|
||||
{`package m0; type N[A any] int; func (r N[B]) m() { r.n() }; func (N[C]) n() {}`, `n`, `func (m0.N[B]).n()`},
|
||||
|
Loading…
Reference in New Issue
Block a user