// 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" |