mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
6487b1573e
commit
f05c67f182
13 changed files with 29 additions and 162 deletions
|
|
@ -130,7 +130,7 @@ func testSyntaxErrors(t *testing.T, filename string) {
|
|||
|
||||
var mode Mode
|
||||
if strings.HasSuffix(filename, ".go2") {
|
||||
mode = AllowGenerics | AllowTypeSets | AllowTypeLists
|
||||
mode = AllowGenerics | AllowTypeSets
|
||||
}
|
||||
ParseFile(filename, func(err error) {
|
||||
e, ok := err.(Error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue