]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: disable type list syntax for the compiler
authorRobert Griesemer <gri@golang.org>
Thu, 2 Sep 2021 00:01:26 +0000 (17:01 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 2 Sep 2021 01:06:17 +0000 (01:06 +0000)
commitdf4c625d88859003df65bc5d528942ee6ba793a1
tree4f46fd6c3972f72c88d9593c62798b9f6abd13fb
parent2872496ba528d658b68a9e66f46b2b722368a3bb
cmd/compile: disable type list syntax for the compiler

Add (temporary) syntax.AllowTypeLists mode to control the
acceptance of type lists; the compiler doesn't set it,
but existing syntax and types2 tests do so that the code
remains exercised while it exists.

Adjust various tests to use the type set notation.

Change-Id: I798e607912552db6bfe38a7cd4324b74c6bf4d95
Reviewed-on: https://go-review.googlesource.com/c/go/+/347249
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/syntax/error_test.go
src/cmd/compile/internal/syntax/parser.go
src/cmd/compile/internal/syntax/parser_test.go
src/cmd/compile/internal/syntax/printer_test.go
src/cmd/compile/internal/syntax/syntax.go
src/cmd/compile/internal/types2/check_test.go
test/typeparam/append.go
test/typeparam/double.go
test/typeparam/settable.go
test/typeparam/typelist.go