mirror of
https://github.com/golang/go.git
synced 2025-05-08 00:53:07 +00:00
The importer type param index used package name as type parameter key, causing type parameters to be reused/overwritten if two packages in the import graph had the same combination of (package name, declaration name, type parameter name). Fix this by instead using the *Package in the key. Note: -G=3 was added to typeparam/issue51836.go, as it is necessary for 1.18 but not for tip. For #51836 Fixes #51847 Change-Id: I881ceaf3cf7c1ab4e0835962350feb552e79b233 Reviewed-on: https://go-review.googlesource.com/c/go/+/394219 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org> (cherry picked from commit fd1b5904ae7cc76eefd94d315f92265da5b81b14) Reviewed-on: https://go-review.googlesource.com/c/go/+/394854
8 lines
199 B
Go
8 lines
199 B
Go
// compiledir -s -G=3
|
|
|
|
// Copyright 2022 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package ignored
|