2012-02-16 21:49:30 -07:00
|
|
|
// errorcheck
|
2009-12-15 15:26:50 -07:00
|
|
|
|
|
|
|
// 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
|
|
|
|
|
2010-06-14 12:23:11 -06:00
|
|
|
func f(x int, y ...int) // ok
|
2009-12-15 15:26:50 -07:00
|
|
|
|
2011-08-16 09:14:26 -06:00
|
|
|
func g(x int, y float) (...) // ERROR "[.][.][.]" "final argument"
|
2009-12-15 15:26:50 -07:00
|
|
|
|
2010-06-14 12:23:11 -06:00
|
|
|
func h(x, y ...int) // ERROR "[.][.][.]"
|
2009-12-15 15:26:50 -07:00
|
|
|
|
2010-06-14 12:23:11 -06:00
|
|
|
func i(x int, y ...int, z float) // ERROR "[.][.][.]"
|
2009-12-15 15:26:50 -07:00
|
|
|
|
2010-06-14 12:23:11 -06:00
|
|
|
var x ...int; // ERROR "[.][.][.]|syntax|type"
|
2009-12-15 15:26:50 -07:00
|
|
|
|
2010-06-14 12:23:11 -06:00
|
|
|
type T ...int; // ERROR "[.][.][.]|syntax|type"
|