mirror of
https://github.com/golang/go
synced 2024-11-12 03:00:22 -07:00
The compilers should and do permit interface types to list
multiple method names with a single type. R=r,gri DELTA=10 (0 added, 10 deleted, 0 changed) OCL=19292 CL=19298
This commit is contained in:
parent
fd47cb9af5
commit
7dee51f491
@ -1,11 +0,0 @@
|
|||||||
// 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.
|
|
||||||
|
|
||||||
// $G $D/$F.go && echo BUG: compilation succeeds incorrectly
|
|
||||||
|
|
||||||
package main
|
|
||||||
|
|
||||||
type I interface {
|
|
||||||
g,f ()int; // BUG only one method name allowed per signature
|
|
||||||
}
|
|
@ -85,9 +85,6 @@ PASS
|
|||||||
bugs/bug020.go:7: type of a structure field cannot be an open array
|
bugs/bug020.go:7: type of a structure field cannot be an open array
|
||||||
BUG should compile
|
BUG should compile
|
||||||
|
|
||||||
=========== bugs/bug032.go
|
|
||||||
BUG: compilation succeeds incorrectly
|
|
||||||
|
|
||||||
=========== bugs/bug041.go
|
=========== bugs/bug041.go
|
||||||
BUG: compilation succeeds incorrectly
|
BUG: compilation succeeds incorrectly
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user