Skip to content

Commit 56e9b8e

Browse files
committed
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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Josh Bleecher Snyder <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 3c1bb8b commit 56e9b8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

go/internal/gccgoimporter/newInterface11.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ package gccgoimporter
99
import "go/types"
1010

1111
func newInterface(methods []*types.Func, embeddeds []types.Type) *types.Interface {
12-
return types.NewInterface2(methods, embeddeds)
12+
return types.NewInterfaceType(methods, embeddeds)
1313
}

go/internal/gcimporter/newInterface11.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ package gcimporter
99
import "go/types"
1010

1111
func newInterface(methods []*types.Func, embeddeds []types.Type) *types.Interface {
12-
return types.NewInterface2(methods, embeddeds)
12+
return types.NewInterfaceType(methods, embeddeds)
1313
}

0 commit comments

Comments
 (0)