1
0
mirror of https://github.com/golang/go synced 2024-11-12 00:30:22 -07:00

With the cleanup of method types, this test case is now

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
This commit is contained in:
Ian Lance Taylor 2008-10-01 17:01:42 -07:00
parent 4fb6064c11
commit 8d0ed065dc

View File

@ -8,7 +8,7 @@ package main
type T *struct {}
func (x T) M () {} // not clear why this shouldn't work
func (x T) M () {} // ERROR "pointer"
/*
bug046.go:7: illegal <this> pointer