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:
parent
4fb6064c11
commit
8d0ed065dc
@ -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
|
Loading…
Reference in New Issue
Block a user