aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/types2/check_test.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2021-04-05 14:30:03 -0700
committerRobert Griesemer <gri@golang.org>2021-04-07 05:19:22 +0000
commit1395432f2330498c8e5661c14652996894f0cc7d (patch)
tree79b89227d925b820cdc77db3b85227c66099fff7 /src/cmd/compile/internal/types2/check_test.go
parent7d5c54eee4718ccc1790fa9ab92bf091e9d56ef7 (diff)
downloadgo-1395432f2330498c8e5661c14652996894f0cc7d.tar.gz
go-1395432f2330498c8e5661c14652996894f0cc7d.zip
cmd/compile/internal/types2: remove Config.AcceptMethodTypeParams flag
Type parameters for methods are not part of the accepted language, but maintaining the code for type-checking them ensures regularity of the type checker implementation. For now, keep the flag internally, disabled by default. The flag is set when running tests. Change-Id: Ic99934bd00bd2608dc1178e4131f46dd1507f0f5 Reviewed-on: https://go-review.googlesource.com/c/go/+/307214 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
Diffstat (limited to 'src/cmd/compile/internal/types2/check_test.go')
-rw-r--r--src/cmd/compile/internal/types2/check_test.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/types2/check_test.go b/src/cmd/compile/internal/types2/check_test.go
index a6baa71b2a..2418c29a2f 100644
--- a/src/cmd/compile/internal/types2/check_test.go
+++ b/src/cmd/compile/internal/types2/check_test.go
@@ -128,7 +128,6 @@ func checkFiles(t *testing.T, filenames []string, goVersion string, colDelta uin
// typecheck and collect typechecker errors
var conf Config
conf.GoVersion = goVersion
- conf.AcceptMethodTypeParams = true
// special case for importC.src
if len(filenames) == 1 && strings.HasSuffix(filenames[0], "importC.src") {
conf.FakeImportC = true