From d09d7627f38211eaa02fed660fd1b3001a7812b3 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Wed, 6 Jun 2018 12:35:09 -0700 Subject: [PATCH] go/types: add missing test case for https://golang.org/cl/116735 Missed this in the prior submit. For #24182. Change-Id: If8349d39c80b7ff57bc0c857985f9e52241321b8 Reviewed-on: https://go-review.googlesource.com/116775 Run-TryBot: Robert Griesemer Reviewed-by: Brad Fitzpatrick --- src/go/types/testdata/errors.src | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/go/types/testdata/errors.src b/src/go/types/testdata/errors.src index 29fcd8fe1d..ff929217c4 100644 --- a/src/go/types/testdata/errors.src +++ b/src/go/types/testdata/errors.src @@ -53,3 +53,8 @@ func _() { // Use unqualified names for package-local objects. type T struct{} var _ int = T /* ERROR value of type T */ {} // use T in error message rather then errors.T + +// Don't report errors containing "invalid type" (issue #24182). +func _(x *missing /* ERROR undeclared name: missing */ ) { + x.m() // there shouldn't be an error here referring to *invalid type +} -- 2.50.0