]> Cypherpunks repositories - gostls13.git/commit
go/types: better error position for instantiation failure
authorRobert Griesemer <gri@golang.org>
Fri, 26 Nov 2021 21:14:01 +0000 (13:14 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 29 Nov 2021 22:02:50 +0000 (22:02 +0000)
commitbc32dd1b69b0629a54cfe50626e42eb4b75eb017
treec2dcf278799cc4b403a849580cf9515a10f89a26
parent1ab677a797ab5cdb5c0248b2d63b753820e6ed49
go/types: better error position for instantiation failure

This is a port of CL 366757 from types2 to go/types,
adjusted for the different handling of index expressions
in go/types.

For #49179.

Change-Id: Ic859eb09683134d055e28c8e0cb1f3814a87dc5c
Reviewed-on: https://go-review.googlesource.com/c/go/+/367198
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/go/types/builtins.go
src/go/types/call.go
src/go/types/mono.go
src/go/types/testdata/check/issues.go2
src/go/types/testdata/fixedbugs/issue39754.go2
src/go/types/testdata/fixedbugs/issue49179.go2 [new file with mode: 0644]
src/go/types/typexpr.go