diff options
author | Russ Cox <rsc@golang.org> | 2011-01-31 18:36:28 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-01-31 18:36:28 -0500 |
commit | f4e76d83091b43e88bb2a832c3b6424c3cc17e1d (patch) | |
tree | 6527360b647fd1fabce1dbc839ba03e24c308163 /test/named1.go | |
parent | fc52d7029fcd667557230d4b4b6443886e261ef9 (diff) | |
download | go-f4e76d83091b43e88bb2a832c3b6424c3cc17e1d.tar.gz go-f4e76d83091b43e88bb2a832c3b6424c3cc17e1d.zip |
replace non-blocking send, receive syntax with select
R=golang-dev, nigeltao, niemeyer, r
CC=golang-dev
https://golang.org/cl/4079053
Diffstat (limited to 'test/named1.go')
-rw-r--r-- | test/named1.go | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/named1.go b/test/named1.go index 600e502f9e..1776313f05 100644 --- a/test/named1.go +++ b/test/named1.go @@ -43,12 +43,9 @@ func main() { _, b = m[2] // ERROR "cannot .* bool.*type Bool" m[2] = 1, b // ERROR "cannot use.*type Bool.*as type bool" - b = c <- 1 // ERROR "cannot use.*type bool.*type Bool" - _ = b - asBool(c <- 1) // ERROR "cannot use.*type bool.*as type Bool" - - _, b = <-c // ERROR "cannot .* bool.*type Bool" - _ = b + ////TODO(rsc): uncomment when this syntax is valid for receive+check closed + //// _, b = <-c // ERROR "cannot .* bool.*type Bool" + //// _ = b var inter interface{} _, b = inter.(Map) // ERROR "cannot .* bool.*type Bool" |