From f9dcda3fd83e83fb29cc6b0f710faa49ba98a54b Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 11 Nov 2021 16:32:16 -0800 Subject: cmd/compile/internal/types2: better error for type assertion/switch on type parameter value Change-Id: I98751d0b2d8aefcf537b6d5200d0b52ffacf1105 Reviewed-on: https://go-review.googlesource.com/c/go/+/363439 Trust: Robert Griesemer Run-TryBot: Robert Griesemer Reviewed-by: Robert Findley --- test/interface/explicit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/interface') diff --git a/test/interface/explicit.go b/test/interface/explicit.go index 1b7af6712b..f769f5878c 100644 --- a/test/interface/explicit.go +++ b/test/interface/explicit.go @@ -57,7 +57,7 @@ func main() { // cannot type-assert non-interfaces f := 2.0 - _ = f.(int) // ERROR "non-interface type|only valid for interface types|not an interface type" + _ = f.(int) // ERROR "non-interface type|only valid for interface types|not an interface" } -- cgit v1.3-5-g9baa