3 // Copyright 2018 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 // When computing method sets with shadowed methods, make sure we
8 // compute whether a method promotion involved a pointer traversal
9 // based on the promoted method, not the shadowed method.
18 type mystruct struct {
22 func (t mystruct) String() string {
35 bytes.NewBufferString("ok"),
38 if got := s.String(); got != "ok" {
42 var i fmt.Stringer = s
43 if got := i.String(); got != "ok" {