]> Cypherpunks repositories - gostls13.git/commit
go/types: better error message when using comparable in union
authorRobert Griesemer <gri@golang.org>
Fri, 17 Dec 2021 00:28:38 +0000 (16:28 -0800)
committerRobert Findley <rfindley@google.com>
Mon, 20 Dec 2021 15:13:56 +0000 (15:13 +0000)
commit7c94355b738170cf06484d502af7f2d935831c2b
tree33e6d750279986aac7ab31c46f511caf3916c69f
parenta2004de0885cc3796fed6dff54678efb8ffa4d01
go/types: better error message when using comparable in union

This is a port of CL 372674 from types2 to go/types with
minor adjustments for error handling.

For #49602.

Change-Id: I726081325a2ff2d5690d11ddc8a830bbcbd8ab33
Reviewed-on: https://go-review.googlesource.com/c/go/+/372954
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/go/types/testdata/fixedbugs/issue49602.go2 [new file with mode: 0644]
src/go/types/union.go