blob: 3ee0ae1364f123688f080251379f3e5e96423d26 [file] [log] [blame]
Russ Coxd289e632008-11-04 09:45:27 -08001// 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
7package main
8
Russ Cox839a6842009-01-20 14:40:40 -08009type T struct {a int}
10type P *T
11type P1 *T
Russ Coxd289e632008-11-04 09:45:27 -080012
13func (p P) val() int { return 1 } // ERROR "receiver"
14func (p *P1) val() int { return 1 } // ERROR "receiver"