Source file src/cmd/cgo/internal/testshared/testdata/issue44031/main/main.go

     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  
     5  package main
     6  
     7  import "testshared/issue44031/b"
     8  
     9  type t int
    10  
    11  func (t) m() {}
    12  
    13  type i interface{ m() } // test that unexported method is correctly marked
    14  
    15  var v interface{} = t(0)
    16  
    17  func main() {
    18  	b.F()
    19  	v.(i).m()
    20  }
    21  

View as plain text