blob: 96330340dfc22110061879fb32b83b455b1bf12d [file] [log] [blame]
Russ Cox917aa352009-05-08 15:40:14 -07001// $G $D/$F.go
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// check that when import gives multiple names
8// to a type, they're still all the same type
9
10package main
11
12import _os_ "os"
13import "os"
14import . "os"
15
16func f(e os.Error)
17
18func main() {
Rob Pike4f61fc92010-09-04 10:36:13 +100019 var _e_ _os_.Error
20 var dot Error
Russ Cox917aa352009-05-08 15:40:14 -070021
Rob Pike4f61fc92010-09-04 10:36:13 +100022 f(_e_)
23 f(dot)
Russ Cox917aa352009-05-08 15:40:14 -070024}
25