]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/types2: set tparamsIsIface to true
authorRobert Griesemer <gri@golang.org>
Wed, 10 Nov 2021 23:50:35 +0000 (15:50 -0800)
committerRobert Griesemer <gri@golang.org>
Sat, 13 Nov 2021 00:26:20 +0000 (00:26 +0000)
This CL enables the mode in which the underlying type of
type parameters is the underlying type of their constraints.

Change-Id: Id3471578dab098695dbd1e0429356ebcc9c5e224
Reviewed-on: https://go-review.googlesource.com/c/go/+/363155
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/types2/typeparam.go

index e4303194760938cff673cbd1a71291e3cb1a0755..5499d975a19486de8771e121111dbc62d73db4c1 100644 (file)
@@ -10,7 +10,7 @@ import "sync/atomic"
 // is the underlying type of its type constraint, i.e.,
 // an interface. With that, a type parameter satisfies
 // isInterface.
-const tparamIsIface = false
+const tparamIsIface = true
 
 // Note: This is a uint32 rather than a uint64 because the
 // respective 64 bit atomic instructions are not available