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