diff options
| author | Chris Manghane <cmang@golang.org> | 2014-10-15 09:55:13 -0700 |
|---|---|---|
| committer | Chris Manghane <cmang@golang.org> | 2014-10-15 09:55:13 -0700 |
| commit | db4dad7fd7f8d95ffb0c8e07de150015172d5853 (patch) | |
| tree | 7f709ba14f9cd65ba306af95ba5eb3ef868f0a67 /test/interface/explicit.go | |
| parent | 42c3130780327299cb8a89f30b8e5c3d6b96d2c2 (diff) | |
| download | go-db4dad7fd7f8d95ffb0c8e07de150015172d5853.tar.xz | |
cmd/gc: blank methods are not permitted in interface types
Fixes #6606.
LGTM=rsc
R=rsc
CC=golang-codereviews, gri
https://golang.org/cl/156210044
Diffstat (limited to 'test/interface/explicit.go')
| -rw-r--r-- | test/interface/explicit.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/interface/explicit.go b/test/interface/explicit.go index 36fa1a4224..b10d02f248 100644 --- a/test/interface/explicit.go +++ b/test/interface/explicit.go @@ -83,12 +83,12 @@ var m4 = M(jj) // ERROR "invalid|wrong type for M method" type B1 interface { - _() + _() // ERROR "methods must have a unique non-blank name" } type B2 interface { M() - _() + _() // ERROR "methods must have a unique non-blank name" } type T2 struct{} |
