]> Cypherpunks repositories - gostls13.git/commitdiff
test: recognize new gofrontend error message
authorIan Lance Taylor <iant@golang.org>
Mon, 4 Jul 2022 20:16:46 +0000 (13:16 -0700)
committerIan Lance Taylor <iant@google.com>
Wed, 6 Jul 2022 00:02:11 +0000 (00:02 +0000)
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>
test/fixedbugs/issue27938.go

index 2589e1eff8d2f5239e7c4dd0c3fef46b4027c352..5392c65f1fcf842ef9929314bcba2c2a0bdb0cb3 100644 (file)
 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"
 }