modernc.org/gc@v1.0.1-0.20240304020402-f0dba7c97c2b/testdata/errchk/test/import2.dir/import2.go (about) 1 // Copyright 2010 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Various declarations of exported variables and functions. 6 7 package p 8 9 var C1 chan <- chan int = (chan<- (chan int))(nil) 10 var C2 chan (<- chan int) = (chan (<-chan int))(nil) 11 var C3 <- chan chan int = (<-chan (chan int))(nil) 12 var C4 chan chan <- int = (chan (chan<- int))(nil) 13 14 var C5 <- chan <- chan int = (<-chan (<-chan int))(nil) 15 var C6 chan <- <- chan int = (chan<- (<-chan int))(nil) 16 var C7 chan <- chan <- int = (chan<- (chan<- int))(nil) 17 18 var C8 <- chan <- chan chan int = (<-chan (<-chan (chan int)))(nil) 19 var C9 <- chan chan <- chan int = (<-chan (chan<- (chan int)))(nil) 20 var C10 chan <- <- chan chan int = (chan<- (<-chan (chan int)))(nil) 21 var C11 chan <- chan <- chan int = (chan<- (chan<- (chan int)))(nil) 22 var C12 chan chan <- <- chan int = (chan (chan<- (<-chan int)))(nil) 23 var C13 chan chan <- chan <- int = (chan (chan<- (chan<- int)))(nil) 24 25 var R1 chan<- (chan int) = (chan <- chan int)(nil) 26 var R3 <-chan (chan int) = (<- chan chan int)(nil) 27 var R4 chan (chan<- int) = (chan chan <- int)(nil) 28 29 var R5 <-chan (<-chan int) = (<- chan <- chan int)(nil) 30 var R6 chan<- (<-chan int) = (chan <- <- chan int)(nil) 31 var R7 chan<- (chan<- int) = (chan <- chan <- int)(nil) 32 33 var R8 <-chan (<-chan (chan int)) = (<- chan <- chan chan int)(nil) 34 var R9 <-chan (chan<- (chan int)) = (<- chan chan <- chan int)(nil) 35 var R10 chan<- (<-chan (chan int)) = (chan <- <- chan chan int)(nil) 36 var R11 chan<- (chan<- (chan int)) = (chan <- chan <- chan int)(nil) 37 var R12 chan (chan<- (<-chan int)) = (chan chan <- <- chan int)(nil) 38 var R13 chan (chan<- (chan<- int)) = (chan chan <- chan <- int)(nil) 39 40 var F1 func() func() int 41 func F2() func() func() int 42 func F3(func() func() int)