]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: flip message contents for reverse type inference errors
authorRobert Griesemer <gri@golang.org>
Tue, 12 Dec 2023 01:54:18 +0000 (17:54 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 12 Dec 2023 18:44:59 +0000 (18:44 +0000)
commit0ac1e3b245e4bfadfc1d5b9a3aaa87e26c6f2030
tree8b019adab7f45701caa4192246c2923be1514f01
parent2643a591728b0fd2bd1e007443442254d1200201
go/types, types2: flip message contents for reverse type inference errors

Add a new flag 'reverse' to control the formatting of type inference
error messages.

This change only impacts error messages.

Fixes #60747.

Change-Id: I81e13075e3157252ccc09f358bd29bd676c34499
Reviewed-on: https://go-review.googlesource.com/c/go/+/549055
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/types2/call.go
src/cmd/compile/internal/types2/infer.go
src/go/types/call.go
src/go/types/infer.go
src/internal/types/testdata/examples/inference2.go
src/internal/types/testdata/fixedbugs/issue60688.go
src/internal/types/testdata/fixedbugs/issue60747.go