blob: 446a038853d3262fe8aa868e099792b94f599004 [file] [log] [blame]
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build go1.8
package gcimporter
import "go/types"
func newAlias => types.NewAlias
// TODO(gri) Consider exporting this functionality from go/types (issue 17730).
func original(obj types.Object) types.Object {
if orig, ok := obj.(*types.Alias); ok {
return orig
}
return obj
}
const testfile = "exports18.go"