go.tools/go/types: added test case for channel make

LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://golang.org/cl/95910044
This commit is contained in:
Robert Griesemer 2014-05-05 10:12:50 -07:00
parent 3d0528640b
commit 9f1412014f
1 changed files with 1 additions and 0 deletions

View File

@ -453,6 +453,7 @@ func make1() {
_ = make /* ERROR arguments */ (chan int, 10, 20)
_ = make(chan int, int /* ERROR not an expression */)
_ = make(chan<- int, "foo" /* ERROR cannot convert */)
_ = make(chan int, - /* ERROR must not be negative */ 10)
_ = make(<-chan float64, 10)
_ = make(chan chan int, n)
_ = make(chan string, int64(n))