Source file test/fixedbugs/issue38125.go

     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  
     9  package p
    10  
    11  type I int
    12  
    13  func (I) M() {}
    14  
    15  type T = struct {
    16  	I
    17  }
    18  
    19  func F() {
    20  	_ = T.M
    21  	_ = struct { I }.M
    22  }
    23  

View as plain text