3 // Copyright 2020 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Issue 38515: failed to mark the method wrapper
8 // reflect.Type.Method itself as REFLECTMETHOD.
18 func (foo) X() { called = true }
20 var h = reflect.Type.Method
23 v := reflect.ValueOf(foo{})
25 f := m.Func.Interface().(func(foo))