mirror of
https://github.com/golang/go
synced 2024-11-14 08:30:25 -07:00
8d0ed065dc
invalid. The receiver type is not permitted to be a pointer type. Since 6g currently accepts it, this moves the test case back to the bugs directory. R=gri DELTA=22 (11 added, 11 deleted, 0 changed) OCL=16284 CL=16336
16 lines
298 B
Go
16 lines
298 B
Go
// errchk $G $D/$F.go
|
|
|
|
// Copyright 2009 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package main
|
|
|
|
type T *struct {}
|
|
|
|
func (x T) M () {} // ERROR "pointer"
|
|
|
|
/*
|
|
bug046.go:7: illegal <this> pointer
|
|
*/
|