]> Cypherpunks repositories - gostls13.git/commitdiff
With the cleanup of method types, this test case is now
authorIan Lance Taylor <iant@golang.org>
Thu, 2 Oct 2008 00:01:42 +0000 (17:01 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 2 Oct 2008 00:01:42 +0000 (17:01 -0700)
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

test/bugs/bug046.go [moved from test/fixedbugs/bug046.go with 81% similarity]

similarity index 81%
rename from test/fixedbugs/bug046.go
rename to test/bugs/bug046.go
index fd16e0f48363ba50de23c84e41d65b8d32612c5a..ba08f790e23ad5877520d4e9e417c6f396f4fca8 100644 (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