Skip to content

Commit

Permalink
HasTypeParam
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfc committed Sep 5, 2022
1 parent 4f44db9 commit e5ae2c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion types_go117.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const (
EnabledTypeParam = false
)

func IsTypeParam(t types.Type) bool {
func HasTypeParam(t types.Type) bool {
return false
}

Expand Down
2 changes: 1 addition & 1 deletion types_go118.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const (
EnabledTypeParam = true
)

func IsTypeParam(t types.Type) bool {
func HasTypeParam(t types.Type) bool {
switch t := t.(type) {
case *types.TypeParam:
return true
Expand Down
2 changes: 1 addition & 1 deletion xtypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ func (r *TypesRecord) Load(pkg *ssa.Package) {
continue
}
checked[typ] = true
if IsTypeParam(typ) {
if HasTypeParam(typ) {
continue
}
r.LoadType(typ)
Expand Down

0 comments on commit e5ae2c0

Please sign in to comment.