1
0
mirror of https://github.com/golang/go synced 2024-11-25 14:37:56 -07:00

bug 211: duplicate interface methods not caught by 6g

R=gri
DELTA=17  (17 added, 0 deleted, 0 changed)
OCL=35852
CL=35876
This commit is contained in:
Rob Pike 2009-10-19 11:47:42 -07:00
parent 9f60b03610
commit e32883df01
2 changed files with 17 additions and 0 deletions

14
test/bugs/bug211.go Normal file
View File

@ -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() {
}

View File

@ -170,3 +170,6 @@ BUG: bug196
=========== bugs/bug210.go =========== bugs/bug210.go
bugs/bug210.go:10: invalid recursive type []T bugs/bug210.go:10: invalid recursive type []T
BUG: should compile BUG: should compile
=========== bugs/bug211.go
BUG: errchk: command succeeded unexpectedly