aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-11-28 17:51:18 -0800
committerIan Lance Taylor <iant@golang.org>2020-11-30 20:04:55 +0000
commitd6abf298cf1ef56dc8cbec2ee9a18c071bb6eb3c (patch)
tree57d39641aaddd9985d1cc9fe7f9dffe9fe8b7017 /test
parentc193279e2c9e62e8ddc0893484251b4411461d62 (diff)
downloadgo-d6abf298cf1ef56dc8cbec2ee9a18c071bb6eb3c.tar.gz
go-d6abf298cf1ef56dc8cbec2ee9a18c071bb6eb3c.zip
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 <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'test')
-rw-r--r--test/fixedbugs/bug340.go2
1 files changed, 1 insertions, 1 deletions
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"
}
}