aboutsummaryrefslogtreecommitdiff
path: root/src/reflect/makefunc.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2023-05-12 08:59:19 -0400
committerGopher Robot <gobot@golang.org>2023-05-12 13:32:40 +0000
commit6d2309b576bf4aa769a428f133ba2c8c524ff410 (patch)
tree195a4602dde57ae97bf276c20e3fb20372a20cbc /src/reflect/makefunc.go
parentc308e9b54c99d0d1fdc2bc317165aab6c36b1420 (diff)
downloadgo-6d2309b576bf4aa769a428f133ba2c8c524ff410.tar.xz
Revert "reflect: change rtype so that it (not *rtype) implements Type"
This reverts CL 487558, which is causing test failures in Google. See b/282133554. Change-Id: Icafa4ffc6aaa24a363abb90b8ae0b0183aca2b89 Reviewed-on: https://go-review.googlesource.com/c/go/+/494410 TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Austin Clements <austin@google.com> Reviewed-by: David Chase <drchase@google.com> Run-TryBot: Austin Clements <austin@google.com>
Diffstat (limited to 'src/reflect/makefunc.go')
-rw-r--r--src/reflect/makefunc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflect/makefunc.go b/src/reflect/makefunc.go
index f4f17549e2..6f9be08917 100644
--- a/src/reflect/makefunc.go
+++ b/src/reflect/makefunc.go
@@ -104,7 +104,7 @@ func makeMethodValue(op string, v Value) Value {
rcvr := Value{v.typ, v.ptr, fl}
// v.Type returns the actual type of the method value.
- ftyp := (*funcType)(unsafe.Pointer(v.Type().common()))
+ ftyp := (*funcType)(unsafe.Pointer(v.Type().(*rtype)))
code := methodValueCallCodePtr()