blob: 8a9b797074d6f831d39f40b3b6b071ac70d626af [file] [log] [blame]
Robert Griesemera5449382008-06-11 12:07:43 -07001// 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 {}
Robert Griesemera5449382008-06-11 12:07:43 -070010
Russ Coxe5124812009-01-08 18:06:06 -080011func (x T) M () {} // ERROR "pointer|receiver"
Robert Griesemera5449382008-06-11 12:07:43 -070012
13/*
14bug046.go:7: illegal <this> pointer
15*/