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 b 6 7import "./a" 8 9var Here = a.New() 10var Dir = Here.Dir 11 12type T = struct { 13 a.Here 14 a.I 15} 16 17var X T 18 19// Test exporting the type of method values for anonymous structs with 20// promoted methods. 21var A = a.A 22var B = a.B 23var C = a.C 24var D = a.D 25var E = a.E 26var F = a.F 27var G = (*a.T).Dir 28var H = a.T.Dir 29var I = a.X.Dir 30var J = (*a.T).M 31var K = a.T.M 32var L = a.X.M 33var M = (*T).Dir 34var N = T.Dir 35var O = X.Dir 36var P = (*T).M 37var Q = T.M 38var R = X.M 39