Russ Cox | 917aa35 | 2009-05-08 15:40:14 -0700 | [diff] [blame] | 1 | // $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 | |
| 10 | package main |
| 11 | |
| 12 | import _os_ "os" |
| 13 | import "os" |
| 14 | import . "os" |
| 15 | |
| 16 | func f(e os.Error) |
| 17 | |
| 18 | func main() { |
Rob Pike | 4f61fc9 | 2010-09-04 10:36:13 +1000 | [diff] [blame] | 19 | var _e_ _os_.Error |
| 20 | var dot Error |
Russ Cox | 917aa35 | 2009-05-08 15:40:14 -0700 | [diff] [blame] | 21 | |
Rob Pike | 4f61fc9 | 2010-09-04 10:36:13 +1000 | [diff] [blame] | 22 | f(_e_) |
| 23 | f(dot) |
Russ Cox | 917aa35 | 2009-05-08 15:40:14 -0700 | [diff] [blame] | 24 | } |
| 25 | |