mirror of
https://github.com/golang/go
synced 2024-11-18 21:44:45 -07:00
go/internal/gcimporter,gccgoimporter: use types.NewInterfaceType
https://go-review.googlesource.com/c/go/+/120875 changed the name of types.NewInterface2 to NewInterfaceType. Adjust x/tools code to match new API. For golang/go#25301. Change-Id: I21e13566f7c88591a16ce461cb4cce8901980b05 Reviewed-on: https://go-review.googlesource.com/120895 Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
3c1bb8b785
commit
56e9b8e653
@ -9,5 +9,5 @@ package gccgoimporter
|
|||||||
import "go/types"
|
import "go/types"
|
||||||
|
|
||||||
func newInterface(methods []*types.Func, embeddeds []types.Type) *types.Interface {
|
func newInterface(methods []*types.Func, embeddeds []types.Type) *types.Interface {
|
||||||
return types.NewInterface2(methods, embeddeds)
|
return types.NewInterfaceType(methods, embeddeds)
|
||||||
}
|
}
|
||||||
|
@ -9,5 +9,5 @@ package gcimporter
|
|||||||
import "go/types"
|
import "go/types"
|
||||||
|
|
||||||
func newInterface(methods []*types.Func, embeddeds []types.Type) *types.Interface {
|
func newInterface(methods []*types.Func, embeddeds []types.Type) *types.Interface {
|
||||||
return types.NewInterface2(methods, embeddeds)
|
return types.NewInterfaceType(methods, embeddeds)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user