diff options
author | Ian Lance Taylor <iant@golang.org> | 2020-11-28 12:41:06 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-11-30 12:03:25 -0800 |
commit | 38f10841817a9fee28ee97c7115b6f4d24f5245d (patch) | |
tree | 1467d4540985e0a2b4bd566c685a5d90a25f38ea /gcc/testsuite/go.test | |
parent | 4f32eced9d01c610bd53e8c59b83bcb5402eddb5 (diff) | |
download | gcc-38f10841817a9fee28ee97c7115b6f4d24f5245d.zip gcc-38f10841817a9fee28ee97c7115b6f4d24f5245d.tar.gz gcc-38f10841817a9fee28ee97c7115b6f4d24f5245d.tar.bz2 |
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.go | 4 |
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 d996ab6..8c543c9 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" } } |