2012-02-17 04:50:37 +00:00
|
|
|
// compile
|
2009-05-08 22:40:14 +00:00
|
|
|
|
|
|
|
// Copyright 2009 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.
|
|
|
|
|
2012-02-23 07:47:26 +00:00
|
|
|
// Test that when import gives multiple names
|
|
|
|
// to a single type, they still all refer to the same type.
|
2009-05-08 22:40:14 +00:00
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import _os_ "os"
|
|
|
|
import "os"
|
|
|
|
import . "os"
|
|
|
|
|
2011-10-28 02:41:39 +00:00
|
|
|
func f(e *os.File)
|
2009-05-08 22:40:14 +00:00
|
|
|
|
|
|
|
func main() {
|
2011-10-28 02:41:39 +00:00
|
|
|
var _e_ *_os_.File
|
|
|
|
var dot *File
|
2009-05-08 22:40:14 +00:00
|
|
|
|
2010-09-04 00:36:13 +00:00
|
|
|
f(_e_)
|
|
|
|
f(dot)
|
2009-05-08 22:40:14 +00:00
|
|
|
}
|