summaryrefslogtreecommitdiff
path: root/gcc/testsuite/go.test
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-11-28 12:41:06 -0800
committerIan Lance Taylor <iant@golang.org>2020-11-30 12:03:25 -0800
commit38f10841817a9fee28ee97c7115b6f4d24f5245d (patch)
tree1467d4540985e0a2b4bd566c685a5d90a25f38ea /gcc/testsuite/go.test
parent4f32eced9d01c610bd53e8c59b83bcb5402eddb5 (diff)
compiler: better error messages for missing interface method
For golang/go#10700 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/273886
Diffstat (limited to 'gcc/testsuite/go.test')
-rw-r--r--gcc/testsuite/go.test/test/fixedbugs/bug340.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/go.test/test/fixedbugs/bug340.go b/gcc/testsuite/go.test/test/fixedbugs/bug340.go
index d996ab64cd4..8c543c98d97 100644
--- a/gcc/testsuite/go.test/test/fixedbugs/bug340.go
+++ b/gcc/testsuite/go.test/test/fixedbugs/bug340.go
@@ -1,6 +1,6 @@
// errorcheck
-// Copyright 2011 The Go Authors. All rights reserved.
+// Copyright 2011 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.
@@ -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"
}
}