]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: better error message for missing ~ in constraint
authorRobert Griesemer <gri@golang.org>
Tue, 23 Nov 2021 23:55:11 +0000 (15:55 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 24 Nov 2021 21:11:45 +0000 (21:11 +0000)
commitb77f5f9667c6e5c2081d94163dd7d11c03fa2b8e
tree994b97734b8fa467efc9ac5061430a37c6885ed7
parent8cdfe408bbd608c5129036e40f346d526049ffc4
cmd/compile/internal/types2: better error message for missing ~ in constraint

If a constraint could be satisfied if one of its type elements
had a ~, provide this information in the error message.

Fixes #49179.

Change-Id: I59f1a855a0646ad7254a978420b0334f1f52ec22
Reviewed-on: https://go-review.googlesource.com/c/go/+/366758
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/instantiate.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue49179.go2
src/cmd/compile/internal/types2/typeset.go