81
81
// by code like Convert and Interface and Assign.
82
82
func makeMethodValue(op string, v Value) Value {
83
83
if v.flag&flagMethod == 0 {
87
87
// Ignoring the flagMethod bit, v describes the receiver, not the method type.
88
88
fl := v.flag & (flagRO | flagAddr | flagIndir)
89
89
fl |= flag(v.typ.Kind()) << flagKindShift
90
rcvr := Value{v.typ, v.ptr, v.scalar, fl}
92
92
// v.Type returns the actual type of the method value.
93
93
funcType := v.Type().(*rtype)