From: Robert Griesemer Date: Wed, 6 Jun 2018 19:35:09 +0000 (-0700) Subject: go/types: add missing test case for https://golang.org/cl/116735 X-Git-Tag: go1.11beta1~197 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d09d7627f38211eaa02fed660fd1b3001a7812b3;p=gostls13.git 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 --- 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 +}