]> Cypherpunks.ru repositories - gostls13.git/commitdiff
test/syntax: remove interface.go
authorRobert Griesemer <gri@golang.org>
Tue, 6 Apr 2021 18:36:36 +0000 (11:36 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 6 Apr 2021 18:55:39 +0000 (18:55 +0000)
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 <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
test/syntax/interface.go [deleted file]

diff --git a/test/syntax/interface.go b/test/syntax/interface.go
deleted file mode 100644 (file)
index 010d3ce..0000000
+++ /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"
-}
-
-
-