From 7dee51f491af1f4aa115ba244306ffa815ffa7f1 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 14 Nov 2008 17:28:17 -0800 Subject: [PATCH] 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 --- test/bugs/bug032.go | 11 ----------- test/golden.out | 3 --- 2 files changed, 14 deletions(-) delete mode 100644 test/bugs/bug032.go diff --git a/test/bugs/bug032.go b/test/bugs/bug032.go deleted file mode 100644 index fb11fdfbe9..0000000000 --- a/test/bugs/bug032.go +++ /dev/null @@ -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 -} diff --git a/test/golden.out b/test/golden.out index cedf02964a..3d7795022b 100644 --- a/test/golden.out +++ b/test/golden.out @@ -85,9 +85,6 @@ PASS bugs/bug020.go:7: type of a structure field cannot be an open array BUG should compile -=========== bugs/bug032.go -BUG: compilation succeeds incorrectly - =========== bugs/bug041.go BUG: compilation succeeds incorrectly -- 2.50.0