Skip to content

Commit 2007599

Browse files
ianlancetaylorIan Lance Taylor
authored and
Ian Lance Taylor
committed
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>
1 parent d602380 commit 2007599

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: test/fixedbugs/issue27938.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
package p
1212

1313
type _ struct {
14-
F sync.Mutex // ERROR "undefined: sync|expected package"
14+
F sync.Mutex // ERROR "undefined: sync|expected package|reference to undefined name"
1515
}
1616

1717
type _ struct {
18-
sync.Mutex // ERROR "undefined: sync|expected package"
18+
sync.Mutex // ERROR "undefined: sync|expected package|reference to undefined name"
1919
}
2020

2121
type _ interface {
22-
sync.Mutex // ERROR "undefined: sync|expected package|expected signature or type name"
22+
sync.Mutex // ERROR "undefined: sync|expected package|expected signature or type name|reference to undefined name"
2323
}

0 commit comments

Comments
 (0)