]> Cypherpunks.ru repositories - gostls13.git/commit
go/types, types2: better error message for invalid use of constraint type
authorRobert Griesemer <gri@golang.org>
Tue, 7 Jun 2022 20:39:56 +0000 (13:39 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 7 Jun 2022 21:37:21 +0000 (21:37 +0000)
commit3507805bcdcd6674c842e25fdb5f07f5ce47ba87
tree97954aa488fa885a7ba1c5529bd80c5b3c500566
parent269bf7e855da04e664fe8d7ffb654c4d0b1439f5
go/types, types2: better error message for invalid use of constraint type

Fixes #42881.

Change-Id: If800c5f90c0034d192bf8b6649e5cfda96df48cb
Reviewed-on: https://go-review.googlesource.com/c/go/+/410954
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/testdata/fixedbugs/issue42881.go [new file with mode: 0644]
src/cmd/compile/internal/types2/typexpr.go
src/go/types/testdata/fixedbugs/issue42881.go [new file with mode: 0644]
src/go/types/typexpr.go