]> Cypherpunks.ru repositories - gostls13.git/commit
go/types, types2: use | rather than ∪ when printing term lists
authorRobert Griesemer <gri@golang.org>
Tue, 7 Jun 2022 17:33:01 +0000 (10:33 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 7 Jun 2022 21:37:14 +0000 (21:37 +0000)
commitd4fb93be87c38aaf0f68ad91852f9f83be726262
treee4706688677323f2bdf32deb542abf884dfd128d
parent346698eea71139280e3b3380554371b5d332ce02
go/types, types2: use | rather than ∪ when printing term lists

With this change, the termlist String() function prints termlists
in the usual Go notation and thus we can use it in error reporting.
Preparation for fixing #40350.

For #40350.

Change-Id: Ia28318841305de234a71af3146ce0c59f5e601a5
Reviewed-on: https://go-review.googlesource.com/c/go/+/410894
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/termlist.go
src/cmd/compile/internal/types2/termlist_test.go
src/cmd/compile/internal/types2/typeset_test.go
src/go/types/termlist.go
src/go/types/termlist_test.go
src/go/types/typeset_test.go