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