| 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 |
|
| 5 |
package a |
| 6 |
|
| 7 |
type Here struct{ stuff int } |
| 8 |
type Info struct{ Dir string } |
| 9 |
|
| 10 |
func New() Here { return Here{} } |
| 11 |
func (h Here) Dir(p string) (Info, error) |
| 12 |
|
| 13 |
type I interface{ M(x string) } |
| 14 |
|
| 15 |
type T = struct { |
| 16 |
Here |
| 17 |
I |
| 18 |
} |
| 19 |
|
| 20 |
var X T |
| 21 |
|
| 22 |
var A = (*T).Dir |
| 23 |
var B = T.Dir |
| 24 |
var C = X.Dir |
| 25 |
var D = (*T).M |
| 26 |
var E = T.M |
| 27 |
var F = X.M |