1// compile 2 3// Copyright 2009 The Go Authors. All rights reserved. 4// Use of this source code is governed by a BSD-style 5// license that can be found in the LICENSE file. 6 7// Test that when import gives multiple names 8// to a single type, they still all refer to the same type. 9 10package main 11 12import _os_ "os" 13import "os" 14import . "os" 15 16func f(e *os.File) 17 18func main() { 19 var _e_ *_os_.File 20 var dot *File 21 22 f(_e_) 23 f(dot) 24} 25