Robert Griesemer | a544938 | 2008-06-11 12:07:43 -0700 | [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 {} |
Robert Griesemer | a544938 | 2008-06-11 12:07:43 -0700 | [diff] [blame] | 10 | |
Russ Cox | e512481 | 2009-01-08 18:06:06 -0800 | [diff] [blame] | 11 | func (x T) M () {} // ERROR "pointer|receiver" |
Robert Griesemer | a544938 | 2008-06-11 12:07:43 -0700 | [diff] [blame] | 12 | |
| 13 | /* |
| 14 | bug046.go:7: illegal <this> pointer |
| 15 | */ |