]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: introduce IsTypeParam() helper
authorKeith Randall <khr@golang.org>
Sat, 5 Jun 2021 06:01:13 +0000 (23:01 -0700)
committerKeith Randall <khr@golang.org>
Mon, 7 Jun 2021 19:51:26 +0000 (19:51 +0000)
commitbcb3927cb51af39f44d810aab809dff27c950697
tree1a09ed62b96fc95c7a46390c75b082b61d0c426f
parentf0c97219a3bc5f5c21863c68d4ccf2fb73002d8c
[dev.typeparams] cmd/compile: introduce IsTypeParam() helper

better than Kind() == types.TTYPEPARAM

Change-Id: I4f35a177cd0cda3be615a92b7b2af1b5a60a3bbc
Reviewed-on: https://go-review.googlesource.com/c/go/+/325410
Trust: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
src/cmd/compile/internal/noder/helpers.go
src/cmd/compile/internal/typecheck/iexport.go
src/cmd/compile/internal/typecheck/iimport.go
src/cmd/compile/internal/typecheck/subr.go
src/cmd/compile/internal/types/type.go