Source file test/import.go
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 10 package main 11 12 import _os_ "os" 13 import "os" 14 import . "os" 15 16 func f(e *os.File) 17 18 func main() { 19 var _e_ *_os_.File 20 var dot *File 21 22 f(_e_) 23 f(dot) 24 } 25