From: Ian Lance Taylor Date: Mon, 4 Jul 2022 20:16:46 +0000 (-0700) Subject: test: recognize new gofrontend error message X-Git-Tag: go1.19rc1~7 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2007599dc83aff17d8261338e8d2ab1f2c518a9b;p=gostls13.git 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 Reviewed-by: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Than McIntosh --- 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" }