]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: better error message for when a type is in a constraint but not the...
authorRobert Griesemer <gri@golang.org>
Wed, 4 Jan 2023 01:05:53 +0000 (17:05 -0800)
committerHeschi Kreinick <heschi@google.com>
Wed, 11 Jan 2023 17:10:19 +0000 (17:10 +0000)
commit6ad27161f8d1b9c5e03fb3415977e1d3c3b11323
tree19a17f05f45caab4ba2164e3b489ed96422a8575
parent76d39ae3499238ac7efb731f4f4cd47b1b3288ab
cmd/compile: better error message for when a type is in a constraint but not the type set

While at it, also remove the word "constraint" in the detail explanation
of an unsatisfied constraint.

Fixes #57500.

Change-Id: I55dae1694de2cfdb434aeba9d4a3530af7aca8f5
Reviewed-on: https://go-review.googlesource.com/c/go/+/460455
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/instantiate.go
src/go/types/instantiate.go
src/internal/types/testdata/fixedbugs/issue40350.go
src/internal/types/testdata/fixedbugs/issue49179.go
src/internal/types/testdata/fixedbugs/issue57486.go
src/internal/types/testdata/fixedbugs/issue57500.go [new file with mode: 0644]