go/src/cmd
Keith Randall 3081f817da cmd/compile: always remove receiver type from instantiated method values
If a type T has a method foo, then

var t T
var i interface{} = t.foo

The type of foo is a method type, but the type of t.foo should be a
standard function type. Make sure we always do that conversion.

Fixes #47775

Change-Id: I464ec792196b050aba1914e070a4ede34bfd0bfa
Reviewed-on: https://go-review.googlesource.com/c/go/+/343881
Trust: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Dan Scales <danscales@google.com>
2021-08-23 19:27:46 +00:00
..
addr2line
api cmd/api: disallow silent API additions after api/go1.n.txt is created 2021-05-03 19:14:16 +00:00
asm cmd/asm/internal/arch: adds the missing type check for arm64 SXTB extension 2021-08-20 03:25:36 +00:00
buildid
cgo cmd/cgo: fix unused parameter warnings in generated _cgo_main.c 2021-08-16 23:03:03 +00:00
compile cmd/compile: always remove receiver type from instantiated method values 2021-08-23 19:27:46 +00:00
cover cmd/cover: use golang.org/x/tools/cover directly 2021-03-25 20:57:58 +00:00
dist cmd/dist: remove unused variables 2021-08-19 20:50:13 +00:00
doc cmd/doc: properly display interface methods 2021-03-19 03:05:26 +00:00
fix all: introduce and use internal/execabs 2021-01-21 19:10:18 +00:00
go cmd/go: fix long test builders 2021-08-23 03:39:14 +00:00
gofmt [dev.typeparams] cmd/gofmt: remove typeparams guards 2021-06-22 17:02:41 +00:00
internal cmd/internal/buildid: reject empty id 2021-08-20 20:20:19 +00:00
link cmd/link: do not use GO_LDSO when cross compile 2021-08-17 23:59:53 +00:00
nm cmd/dist,runtime: support cgo on openbsd/mips64 2021-04-28 12:51:42 +00:00
objdump cmd/internal/objfile: emit better error for Go object of a different version 2021-04-30 16:53:35 +00:00
pack cmd/pack: use testing.T.TempDir in tests 2021-04-07 13:24:10 +00:00
pprof cmd/pprof,runtime/pprof: disable test on more broken platforms 2021-06-17 21:58:54 +00:00
test2json all: introduce and use internal/execabs 2021-01-21 19:10:18 +00:00
trace cmd/trace: use newTaskDesc to create taskDesc 2021-08-17 16:22:15 +00:00
vendor cmd: update x/tools and remove copy of txtar 2021-08-16 20:23:19 +00:00
vet [dev.typeparams] all: merge master (46fd547) into dev.typeparams 2021-08-12 12:43:12 -07:00
README.vendor
go.mod [dev.typeparams] cmd: update vendored golang.org/x/tools to 337cebd2c1 2021-08-10 16:07:37 +00:00
go.sum [dev.typeparams] cmd: update vendored golang.org/x/tools to 337cebd2c1 2021-08-10 16:07:37 +00:00

README.vendor

See src/README.vendor for information on loading vendored packages
and updating the vendor directory.