aboutsummaryrefslogtreecommitdiff
path: root/src/bytes/bytes.go
diff options
context:
space:
mode:
authorRob Findley <rfindley@anthropic.com>2026-04-12 21:21:36 +0000
committerRobert Findley <rfindley@anthropic.com>2026-04-13 15:16:46 -0700
commit3d4ee07f7f1c6c4870677d9530e1c4bdef2c5e0a (patch)
tree8f2defdd8d68c1fe3c05c13349a82248aec75196 /src/bytes/bytes.go
parent356b87fa7bbba02debea59d2d03e1eca1750ccb6 (diff)
downloadgo-3d4ee07f7f1c6c4870677d9530e1c4bdef2c5e0a.tar.xz
go/types, types2: fail interface inference against generic methods
When unifying an interface against a concrete type, interface inference looks up each interface method on the concrete type and unifies the signatures. If the concrete method is generic, the *Signature unify case (which ignores type parameter lists) would unify the method's own type parameter into the inference variable, leading to errors mentioning a leaked P and recording the wrong type in Info. A generic method never satisfies an interface method, so fail the unification at the lookup site instead. Change-Id: Id01eefcde492399cb94f4452f5627c4edbd22a1c Reviewed-on: https://go-review.googlesource.com/c/go/+/766160 Reviewed-by: Robert Griesemer <gri@google.com> Reviewed-by: Mark Freeman <markfreeman@google.com> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/bytes/bytes.go')
0 files changed, 0 insertions, 0 deletions