From: Robert Griesemer Date: Wed, 10 Nov 2021 23:50:35 +0000 (-0800) Subject: cmd/compile/internal/types2: set tparamsIsIface to true X-Git-Tag: go1.18beta1~342 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c09d854f0961a997ac41a740a6e8d1892b7e6ee0;p=gostls13.git cmd/compile/internal/types2: set tparamsIsIface to true 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 Run-TryBot: Robert Griesemer TryBot-Result: Go Bot Reviewed-by: Robert Findley --- diff --git a/src/cmd/compile/internal/types2/typeparam.go b/src/cmd/compile/internal/types2/typeparam.go index e430319476..5499d975a1 100644 --- a/src/cmd/compile/internal/types2/typeparam.go +++ b/src/cmd/compile/internal/types2/typeparam.go @@ -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