Russ Cox | d289e63 | 2008-11-04 09:45:27 -0800 | [diff] [blame] | 1 | // errchk $G $D/$F.go |
| 2 | |
| 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. |
| 6 | |
| 7 | package main |
| 8 | |
Russ Cox | 839a684 | 2009-01-20 14:40:40 -0800 | [diff] [blame] | 9 | type T struct {a int} |
| 10 | type P *T |
| 11 | type P1 *T |
Russ Cox | d289e63 | 2008-11-04 09:45:27 -0800 | [diff] [blame] | 12 | |
| 13 | func (p P) val() int { return 1 } // ERROR "receiver" |
| 14 | func (p *P1) val() int { return 1 } // ERROR "receiver" |