From: Ian Lance Taylor Date: Sun, 29 Nov 2020 01:51:18 +0000 (-0800) Subject: test: recognize new gofrontend error message X-Git-Tag: go1.16beta1~145 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d6abf298cf1ef56dc8cbec2ee9a18c071bb6eb3c;p=gostls13.git test: recognize new gofrontend error message As of https://golang.org/cl/273886: fixedbugs/bug340.go:15:18: error: reference to method ‘x’ in interface with no methods For golang/go#10700 Change-Id: Id29eb0e34bbb524117614229c4c27cfd17dae286 Reviewed-on: https://go-review.googlesource.com/c/go/+/273887 Trust: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Go Bot Reviewed-by: Cherry Zhang --- diff --git a/test/fixedbugs/bug340.go b/test/fixedbugs/bug340.go index 118bbacc22..8c543c98d9 100644 --- a/test/fixedbugs/bug340.go +++ b/test/fixedbugs/bug340.go @@ -12,6 +12,6 @@ func main() { var x interface{} switch t := x.(type) { case 0: // ERROR "type" - t.x = 1 // ERROR "type interface \{\}|reference to undefined field or method" + t.x = 1 // ERROR "type interface \{\}|reference to undefined field or method|interface with no methods" } }