| // Copyright 2009 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| c = cr // ERROR "illegal types|incompatible|cannot" |
| c = cs // ERROR "illegal types|incompatible|cannot" |
| cr = cs // ERROR "illegal types|incompatible|cannot" |
| cs = cr // ERROR "illegal types|incompatible|cannot" |
| //TODO(rsc): uncomment when this syntax is valid for receive+check closed |
| //TODO(rsc): uncomment when this syntax is valid for receive+check closed |
| ////TODO(rsc): uncomment when this syntax is valid for receive+check closed |
| //// x, ok = <-cs // ERROR "receive" |
| case cr <- 0: // ERROR "send" |
| case x := <-cs: // ERROR "receive" |