1// Copyright 2021 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 T1 struct { 8 *T2 9} 10 11type T2 struct { 12} 13 14func (t2 *T2) M() { 15} 16 17func F() { 18 f(T1.M) 19} 20 21func f(f func(T1)) { 22} 23