2012-02-16 21:49:30 -07:00
|
|
|
// errorcheck
|
2009-12-15 15:26:50 -07:00
|
|
|
|
2016-04-10 15:32:26 -06:00
|
|
|
// Copyright 2009 The Go Authors. All rights reserved.
|
2009-12-15 15:26:50 -07:00
|
|
|
// 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
|
|
|
|
2012-12-13 16:11:31 -07:00
|
|
|
func g(x int, y float32) (...) // 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
|
|
|
|
2012-12-13 16:11:31 -07:00
|
|
|
func i(x int, y ...int, z float32) // 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"
|