1 // errchk $G -e $D/$F.go
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.
18 c = cr // ERROR "illegal types|incompatible|cannot"
19 c = cs // ERROR "illegal types|incompatible|cannot"
20 cr = cs // ERROR "illegal types|incompatible|cannot"
21 cs = cr // ERROR "illegal types|incompatible|cannot"
30 cr <- 0 // ERROR "send"
31 ok = cr <- 0 // ERROR "send"
40 <-cs // ERROR "receive"
41 x, ok = <-cs // ERROR "receive"
49 case cr <- 0: // ERROR "send"
54 case x := <-cs: // ERROR "receive"