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