]> Cypherpunks repositories - gostls13.git/commitdiff
go/types, types2: fix test name (for debugging)
authorRobert Griesemer <gri@golang.org>
Wed, 26 Jun 2024 00:33:15 +0000 (17:33 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 26 Jul 2024 20:13:07 +0000 (20:13 +0000)
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>

src/cmd/compile/internal/types2/api_test.go
src/go/types/api_test.go

index f23c50ba4612388705061f2b234c4ac9255a173f..d73e8fa95ecf408b3eb03a1e12274d906f9ad04f 100644 (file)
@@ -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()`},
index 0854a119c2462ed95bad750157bbdb4c72acdc4b..f94fe6be4ccae44f2cea1b91847db0a38672e4d0 100644 (file)
@@ -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()`},