]> Cypherpunks repositories - gostls13.git/commitdiff
go/types: set tparamsIsIface to true
authorRobert Findley <rfindley@google.com>
Wed, 17 Nov 2021 15:42:13 +0000 (10:42 -0500)
committerRobert Findley <rfindley@google.com>
Wed, 17 Nov 2021 19:51:32 +0000 (19:51 +0000)
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 <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/typeparam.go

index 084130fc74f5c5fb436af71b15ec5c3fdf16cfd0..f000d8f10881f33f2084a2da5ebf961435b87754 100644 (file)
@@ -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