Commit 7692a931 authored by Robert Griesemer's avatar Robert Griesemer

- new() accepts too many arguments

R=r
OCL=19413
CL=19413
parent d58cd762
// errchk $G $D/$F.go
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
func main() {
a := new([]int, 10, 20, 30, 40); // should allow at most 2 sizes
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment