aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/types2/check.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.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.go')
-rw-r--r--src/cmd/compile/internal/types2/check.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/cmd/compile/internal/types2/check.go b/src/cmd/compile/internal/types2/check.go
index 7d499eb13d..2edcefd4c8 100644
--- a/src/cmd/compile/internal/types2/check.go
+++ b/src/cmd/compile/internal/types2/check.go
@@ -31,11 +31,6 @@ const debug = false // leave on during development
//
const forceStrict = false
-// If methodTypeParamsOk is set, type parameters are
-// permitted in method declarations (in interfaces, too).
-// Generalization and experimental feature.
-const methodTypeParamsOk = true
-
// exprInfo stores information about an untyped expression.
type exprInfo struct {
isLhs bool // expression is lhs operand of a shift with delayed type-check