blob: d135cd284517fb540e2ff43fb2b6892b72f800ba [file] [log] [blame]
Russ Coxd2cc9882012-02-16 23:50:37 -05001// compile
Russ Cox917aa352009-05-08 15:40:14 -07002
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
Rob Pike501f0b52012-02-23 18:47:26 +11007// Test that when import gives multiple names
8// to a single type, they still all refer to the same type.
Russ Cox917aa352009-05-08 15:40:14 -07009
10package main
11
12import _os_ "os"
13import "os"
14import . "os"
15
Russ Cox64f78c92011-10-27 19:41:39 -070016func f(e *os.File)
Russ Cox917aa352009-05-08 15:40:14 -070017
18func main() {
Russ Cox64f78c92011-10-27 19:41:39 -070019 var _e_ *_os_.File
20 var dot *File
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}