]> Cypherpunks repositories - gostls13.git/commitdiff
bug 211: duplicate interface methods not caught by 6g
authorRob Pike <r@golang.org>
Mon, 19 Oct 2009 18:47:42 +0000 (11:47 -0700)
committerRob Pike <r@golang.org>
Mon, 19 Oct 2009 18:47:42 +0000 (11:47 -0700)
R=gri
DELTA=17  (17 added, 0 deleted, 0 changed)
OCL=35852
CL=35876

test/bugs/bug211.go [new file with mode: 0644]
test/golden.out

diff --git a/test/bugs/bug211.go b/test/bugs/bug211.go
new file mode 100644 (file)
index 0000000..69aeeee
--- /dev/null
@@ -0,0 +1,14 @@
+// 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 R interface { duplicate() }
+type S interface { duplicate() }
+type T interface { R; S }      // ERROR "duplicate"
+
+func main() {
+}
index dea36ea2bddad05b0c82ad22b3a8cc115a962375..52fe9ec53b0cb7cc6790f852b744fe72483f1c5e 100644 (file)
@@ -170,3 +170,6 @@ BUG: bug196
 =========== bugs/bug210.go
 bugs/bug210.go:10: invalid recursive type []T
 BUG: should compile
+
+=========== bugs/bug211.go
+BUG: errchk: command succeeded unexpectedly