From f154da9e12608589e8d5f0508f908a0c3e88a1bb Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Thu, 15 Jan 2015 11:54:00 -0700 Subject: Imported Upstream version 1.4 --- test/interface/explicit.go | 4 ++-- test/interface/fail.go | 14 -------------- 2 files changed, 2 insertions(+), 16 deletions(-) (limited to 'test/interface') diff --git a/test/interface/explicit.go b/test/interface/explicit.go index 36fa1a422..b10d02f24 100644 --- a/test/interface/explicit.go +++ b/test/interface/explicit.go @@ -83,12 +83,12 @@ var m4 = M(jj) // ERROR "invalid|wrong type for M method" type B1 interface { - _() + _() // ERROR "methods must have a unique non-blank name" } type B2 interface { M() - _() + _() // ERROR "methods must have a unique non-blank name" } type T2 struct{} diff --git a/test/interface/fail.go b/test/interface/fail.go index 81eb6cb3c..d40a15138 100644 --- a/test/interface/fail.go +++ b/test/interface/fail.go @@ -14,7 +14,6 @@ type I interface { func main() { shouldPanic(p1) - shouldPanic(p2) } func p1() { @@ -30,19 +29,6 @@ type S struct{} func (s *S) _() {} -type B interface { - _() -} - -func p2() { - var s *S - var b B - var e interface{} - e = s - b = e.(B) - _ = b -} - func shouldPanic(f func()) { defer func() { if recover() == nil { -- cgit v1.2.3