From d57189e92b9b4cd6909aefbcee02e9cb6fc05cff Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Tue, 6 Apr 2021 11:36:36 -0700 Subject: [PATCH] test/syntax: remove interface.go The exact same test case covered by this file is also in fixedbugs/bug121.go. No need for duplication. Also, the actual syntax error tested (multiple method names with a single signature) is an unlikely syntax error, and only here for historical reasons (in the very beginning, this was actually possible to write). Now, virtually nobody is making this mistake. Change-Id: I9d68e0aee2a63025f44e6338647f8250ecc3077a Reviewed-on: https://go-review.googlesource.com/c/go/+/307789 Trust: Robert Griesemer Run-TryBot: Robert Griesemer Reviewed-by: Ian Lance Taylor --- test/syntax/interface.go | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 test/syntax/interface.go diff --git a/test/syntax/interface.go b/test/syntax/interface.go deleted file mode 100644 index 010d3ce578..0000000000 --- a/test/syntax/interface.go +++ /dev/null @@ -1,14 +0,0 @@ -// errorcheck - -// Copyright 2010 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 T interface { - f, g () // ERROR "name list not allowed in interface type" -} - - -