]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/reflectmethod7.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / reflectmethod7.go
index 42429978b45a691297fd1eba287b6b52dc774599..688238c5119fa68d97cc3d1906033ebf5c82f18d 100644 (file)
@@ -16,7 +16,7 @@ func (s S) M() {}
 
 func main() {
        t := reflect.TypeOf(S(0))
-       fn, ok := reflect.PtrTo(t).MethodByName("M")
+       fn, ok := reflect.PointerTo(t).MethodByName("M")
        if !ok {
                panic("FAIL")
        }