From 9f1412014fb2db7a3eb133538962de67b14b39ae Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Mon, 5 May 2014 10:12:50 -0700 Subject: [PATCH] go.tools/go/types: added test case for channel make LGTM=adonovan R=adonovan CC=golang-codereviews https://golang.org/cl/95910044 --- go/types/testdata/builtins.src | 1 + 1 file changed, 1 insertion(+) diff --git a/go/types/testdata/builtins.src b/go/types/testdata/builtins.src index 9d39d409..b89fd440 100644 --- a/go/types/testdata/builtins.src +++ b/go/types/testdata/builtins.src @@ -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))