aboutsummaryrefslogtreecommitdiffhomepage
path: root/testdata/channel.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2019-05-13 20:35:20 +0200
committerRon Evans <[email protected]>2019-05-14 11:18:38 +0200
commit0a4021968022fb6e55e06b01665df590760356e1 (patch)
tree23d5fecdd48723c9dfd96b211850dd7922e95b9e /testdata/channel.go
parentc981f14e61dcfc8e3bde8a8785c73c997e48f278 (diff)
downloadtinygo-0a4021968022fb6e55e06b01665df590760356e1.tar.gz
tinygo-0a4021968022fb6e55e06b01665df590760356e1.zip
compiler: implement comparing channel values
Diffstat (limited to 'testdata/channel.go')
-rw-r--r--testdata/channel.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/testdata/channel.go b/testdata/channel.go
index e3b8aed36..cdf3fac6e 100644
--- a/testdata/channel.go
+++ b/testdata/channel.go
@@ -4,7 +4,7 @@ import "time"
func main() {
ch := make(chan int)
- println("len, cap of channel:", len(ch), cap(ch))
+ println("len, cap of channel:", len(ch), cap(ch), ch == nil)
go sender(ch)
n, ok := <-ch