1// compile 2 3// Copyright 2020 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. 6 7// gccgo mishandled embedded methods of type aliases. 8 9package p 10 11type I int 12 13func (I) M() {} 14 15type T = struct { 16 I 17} 18 19func F() { 20 _ = T.M 21 _ = struct { I }.M 22} 23