LEFT | RIGHT |
(no file at all) | |
1 // skip # used by import3 | 1 // compiledir |
2 | 2 |
3 // Copyright 2010 The Go Authors. All rights reserved. | 3 // Copyright 2010 The Go Authors. All rights reserved. |
4 // Use of this source code is governed by a BSD-style | 4 // Use of this source code is governed by a BSD-style |
5 // license that can be found in the LICENSE file. | 5 // license that can be found in the LICENSE file. |
6 | 6 |
7 // Various declarations of exported variables and functions. | 7 // Tests that export data does not corrupt type syntax. |
8 // Imported by import3.go. | 8 package ignored |
9 | |
10 package p | |
11 | |
12 var C1 chan <- chan int = (chan<- (chan int))(nil) | |
13 var C2 chan (<- chan int) = (chan (<-chan int))(nil) | |
14 var C3 <- chan chan int = (<-chan (chan int))(nil) | |
15 var C4 chan chan <- int = (chan (chan<- int))(nil) | |
16 | |
17 var C5 <- chan <- chan int = (<-chan (<-chan int))(nil) | |
18 var C6 chan <- <- chan int = (chan<- (<-chan int))(nil) | |
19 var C7 chan <- chan <- int = (chan<- (chan<- int))(nil) | |
20 | |
21 var C8 <- chan <- chan chan int = (<-chan (<-chan (chan int)))(nil) | |
22 var C9 <- chan chan <- chan int = (<-chan (chan<- (chan int)))(nil) | |
23 var C10 chan <- <- chan chan int = (chan<- (<-chan (chan int)))(nil) | |
24 var C11 chan <- chan <- chan int = (chan<- (chan<- (chan int)))(nil) | |
25 var C12 chan chan <- <- chan int = (chan (chan<- (<-chan int)))(nil) | |
26 var C13 chan chan <- chan <- int = (chan (chan<- (chan<- int)))(nil) | |
27 | |
28 var R1 chan<- (chan int) = (chan <- chan int)(nil) | |
29 var R3 <-chan (chan int) = (<- chan chan int)(nil) | |
30 var R4 chan (chan<- int) = (chan chan <- int)(nil) | |
31 | |
32 var R5 <-chan (<-chan int) = (<- chan <- chan int)(nil) | |
33 var R6 chan<- (<-chan int) = (chan <- <- chan int)(nil) | |
34 var R7 chan<- (chan<- int) = (chan <- chan <- int)(nil) | |
35 | |
36 var R8 <-chan (<-chan (chan int)) = (<- chan <- chan chan int)(nil) | |
37 var R9 <-chan (chan<- (chan int)) = (<- chan chan <- chan int)(nil) | |
38 var R10 chan<- (<-chan (chan int)) = (chan <- <- chan chan int)(nil) | |
39 var R11 chan<- (chan<- (chan int)) = (chan <- chan <- chan int)(nil) | |
40 var R12 chan (chan<- (<-chan int)) = (chan chan <- <- chan int)(nil) | |
41 var R13 chan (chan<- (chan<- int)) = (chan chan <- chan <- int)(nil) | |
42 | |
43 var F1 func() func() int | |
44 func F2() func() func() int | |
45 func F3(func() func() int) | |
LEFT | RIGHT |