mirror of
https://github.com/golang/go
synced 2024-11-22 00:14:42 -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:
parent
9f60b03610
commit
e32883df01
14
test/bugs/bug211.go
Normal file
14
test/bugs/bug211.go
Normal 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() {
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user