newInterface11.go 372 B

1234567891011121314
  1. // Copyright 2018 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. //go:build go1.11
  5. // +build go1.11
  6. package gcimporter
  7. import "go/types"
  8. func newInterface(methods []*types.Func, embeddeds []types.Type) *types.Interface {
  9. return types.NewInterfaceType(methods, embeddeds)
  10. }