]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile/internal/syntax, types2: remove ability to handle type lists
authorRobert Griesemer <gri@golang.org>
Tue, 5 Oct 2021 21:03:47 +0000 (14:03 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 6 Oct 2021 19:44:05 +0000 (19:44 +0000)
commitf05c67f18259800e4847e44c9ca34de2bf5ed198
tree1f4a69561b0d9085bfc830d530099f073ae62ee3
parent6487b1573e8359c1406a073c978c60a406055b5e
cmd/compile/internal/syntax, types2: remove ability to handle type lists

The type set notation has been accepted a while ago.
We're not going back to supporting the original
type list notation. Remove support for it in the
parser and type checker.

Change-Id: I860651f80b89fa43a3a5a2a02cf823ec0dae583c
Reviewed-on: https://go-review.googlesource.com/c/go/+/354131
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
13 files changed:
src/cmd/compile/internal/syntax/error_test.go
src/cmd/compile/internal/syntax/nodes.go
src/cmd/compile/internal/syntax/parser.go
src/cmd/compile/internal/syntax/parser_test.go
src/cmd/compile/internal/syntax/printer.go
src/cmd/compile/internal/syntax/printer_test.go
src/cmd/compile/internal/syntax/syntax.go
src/cmd/compile/internal/syntax/testdata/go2/typeinst2.go2
src/cmd/compile/internal/syntax/testdata/interface.go2
src/cmd/compile/internal/types2/check_test.go
src/cmd/compile/internal/types2/interface.go
src/cmd/compile/internal/types2/testdata/check/typeinst2.go2
src/cmd/compile/internal/types2/testdata/examples/constraints.go2