From: Robert Findley Date: Wed, 17 Nov 2021 15:42:13 +0000 (-0500) Subject: go/types: set tparamsIsIface to true X-Git-Tag: go1.18beta1~263 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9a33945f2cc4b2108defdcdea80dc0ebe5af3c24;p=gostls13.git go/types: set tparamsIsIface to true This is a port of CL 363155 from types2 to go/types. Change-Id: Ic24f8c88513599c8f4685f0b66d3782ac4e6831a Reviewed-on: https://go-review.googlesource.com/c/go/+/364717 Trust: Robert Findley Run-TryBot: Robert Findley TryBot-Result: Go Bot Reviewed-by: Robert Griesemer --- diff --git a/src/go/types/typeparam.go b/src/go/types/typeparam.go index 084130fc74..f000d8f108 100644 --- a/src/go/types/typeparam.go +++ b/src/go/types/typeparam.go @@ -13,7 +13,7 @@ import ( // 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