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.
|
|
|
|
|
|
|
|
// check that when import gives multiple names
|
|
|
|
// to a type, they're still all the same type
|
|
|
|
|
|
|
|
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
|
|
|
}
|