diff options
| author | Robert Griesemer <gri@golang.org> | 2021-10-05 14:03:47 -0700 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2021-10-06 19:44:05 +0000 |
| commit | f05c67f18259800e4847e44c9ca34de2bf5ed198 (patch) | |
| tree | 1f4a69561b0d9085bfc830d530099f073ae62ee3 /src/cmd/compile/internal/syntax/parser_test.go | |
| parent | 6487b1573e8359c1406a073c978c60a406055b5e (diff) | |
| download | go-f05c67f18259800e4847e44c9ca34de2bf5ed198.tar.xz | |
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>
Diffstat (limited to 'src/cmd/compile/internal/syntax/parser_test.go')
| -rw-r--r-- | src/cmd/compile/internal/syntax/parser_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/syntax/parser_test.go b/src/cmd/compile/internal/syntax/parser_test.go index fb02c8b95f..29682012e5 100644 --- a/src/cmd/compile/internal/syntax/parser_test.go +++ b/src/cmd/compile/internal/syntax/parser_test.go @@ -46,7 +46,7 @@ func TestParseGo2(t *testing.T) { for _, fi := range list { name := fi.Name() if !fi.IsDir() && !strings.HasPrefix(name, ".") { - ParseFile(filepath.Join(dir, name), func(err error) { t.Error(err) }, nil, AllowGenerics|AllowTypeSets|AllowTypeLists) + ParseFile(filepath.Join(dir, name), func(err error) { t.Error(err) }, nil, AllowGenerics|AllowTypeSets) } } } |
