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))