3 // Copyright 2009 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.
15 func (p P
) val() int { return 1 } // ERROR "receiver"
16 func (p
*P1
) val() int { return 1 } // ERROR "receiver"
22 var _
= (*Val
).val
// ERROR "method"
27 var _
= pv
.val() // ERROR "method"