]> Cypherpunks.ru repositories - gostls13.git/blob - test/import.go
implications of stricter type equality:
[gostls13.git] / test / import.go
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() {
19         var _e_ _os_.Error;
20         var dot Error;
21
22         f(_e_);
23         f(dot);
24 }
25