aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2022-07-04 13:16:46 -0700
committerIan Lance Taylor <iant@google.com>2022-07-06 00:02:11 +0000
commit2007599dc83aff17d8261338e8d2ab1f2c518a9b (patch)
treefec7157ae2e630abd3434fef5f0194b0497bb2d7
parentd602380f58e2a2ab4b262c7d69b78ff634cba5e8 (diff)
downloadgo-2007599dc83aff17d8261338e8d2ab1f2c518a9b.tar.gz
go-2007599dc83aff17d8261338e8d2ab1f2c518a9b.zip
test: recognize new gofrontend error message
The new gofrontend message matches other gofrontend error messages, so adjust the test to accept it. For #27938 For #51237 Change-Id: I29b536f83a0cf22b1dbdae9abc2f5f6cf21d522d Reviewed-on: https://go-review.googlesource.com/c/go/+/416014 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com>
-rw-r--r--test/fixedbugs/issue27938.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fixedbugs/issue27938.go b/test/fixedbugs/issue27938.go
index 2589e1eff8..5392c65f1f 100644
--- a/test/fixedbugs/issue27938.go
+++ b/test/fixedbugs/issue27938.go
@@ -11,13 +11,13 @@
package p
type _ struct {
- F sync.Mutex // ERROR "undefined: sync|expected package"
+ F sync.Mutex // ERROR "undefined: sync|expected package|reference to undefined name"
}
type _ struct {
- sync.Mutex // ERROR "undefined: sync|expected package"
+ sync.Mutex // ERROR "undefined: sync|expected package|reference to undefined name"
}
type _ interface {
- sync.Mutex // ERROR "undefined: sync|expected package|expected signature or type name"
+ sync.Mutex // ERROR "undefined: sync|expected package|expected signature or type name|reference to undefined name"
}