]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: use dictionary to convert arguments of ==, != to interfaces
authorKeith Randall <khr@golang.org>
Mon, 12 Jul 2021 23:12:55 +0000 (16:12 -0700)
committerKeith Randall <khr@golang.org>
Fri, 16 Jul 2021 18:31:15 +0000 (18:31 +0000)
commit10c8b7c1d7bb973a0b2bc6858b4d5b705cdaa402
tree9f43cafda803b3efc47a5f1640a999646c392e48
parented9e109dc9a3523100d19e6f259edccbd7dd3cba
[dev.typeparams] cmd/compile: use dictionary to convert arguments of ==, != to interfaces

When comparing a value whose type is a type parameter to an interface,
we need to convert that type parameter to an interface using the dictionary
entries.

Change-Id: I409c9e36e376fe4ef8163407d0fd4e84496d5b65
Reviewed-on: https://go-review.googlesource.com/c/go/+/334150
Trust: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
src/cmd/compile/internal/noder/stencil.go
test/typeparam/equal.go [new file with mode: 0644]