]> Cypherpunks repositories - gostls13.git/commit
go/types: use error_.errorf for reporting related error information
authorRobert Findley <rfindley@google.com>
Mon, 18 Apr 2022 22:14:51 +0000 (18:14 -0400)
committerRobert Findley <rfindley@google.com>
Fri, 22 Apr 2022 15:46:57 +0000 (15:46 +0000)
commit32275013645aa3d5dc0fa9f2ed529bc201b79759
treedc19386aec68747481c244171ea8012da22f76c3
parent65d7345e8ba77bea9dd3d694d0015308416e3280
go/types: use error_.errorf for reporting related error information

Use error_.errorf for reporting related error information rather than
inlining the "\n\t". This aligns go/types with types2 in cases where the
related information has no position information. In other cases,
go/types needs to report a "continuation error" (starting with '\t') so
that users can access multiple error positions.

Change-Id: Ica98466596c374e0c1e502e7227c8d8c803b4c22
Reviewed-on: https://go-review.googlesource.com/c/go/+/400825
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
src/go/types/assignments.go
src/go/types/call.go
src/go/types/conversions.go