modernc.org/gc@v1.0.1-0.20240304020402-f0dba7c97c2b/testdata/errchk/test/fixedbugs/issue18895.dir/p.go (about)

     1  // Copyright 2017 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 p
     6  
     7  func F() { // ERROR "can inline"
     8  	var v t
     9  	v.m() // ERROR "inlining call"
    10  }
    11  
    12  type t int
    13  
    14  func (t) m() {} // ERROR "can inline"