1// Copyright 2020 The Go Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style 3// license that can be found in the LICENSE file. 4 5package a 6 7type Here struct{ stuff int } 8type Info struct{ Dir string } 9 10func New() Here { return Here{} } 11func (h Here) Dir(p string) (Info, error) 12 13type I interface{ M(x string) } 14 15type T = struct { 16 Here 17 I 18} 19 20var X T 21 22var A = (*T).Dir 23var B = T.Dir 24var C = X.Dir 25var D = (*T).M 26var E = T.M 27var F = X.M 28