]> Cypherpunks.ru repositories - gostls13.git/commit
go/types: better error messages for field lookup errors
authorRobert Griesemer <gri@golang.org>
Thu, 6 Dec 2018 01:08:27 +0000 (17:08 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 6 Dec 2018 02:43:14 +0000 (02:43 +0000)
commit9e0ec5ef5945696e90d7749d3569471c6f8b68c5
treebc482eb973d8a2f7f1164176e9687f8775019f1d
parentdc7808d4f2989fa0514fc0e4014616fdb8c4a764
go/types: better error messages for field lookup errors

- follow wording of cmd/compile more closely
- only print base of a package path to avoid overly long error messages

Fixes #26234.

Change-Id: I47a8c64b3adcf73980cd296a24cf8ac721e5df06
Reviewed-on: https://go-review.googlesource.com/c/152764
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/types/call.go
src/go/types/errors.go
src/go/types/testdata/issues.src