Commit e32883df authored by Rob Pike's avatar Rob Pike

bug 211: duplicate interface methods not caught by 6g

R=gri
DELTA=17  (17 added, 0 deleted, 0 changed)
OCL=35852
CL=35876
parent 9f60b036
// 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment