2012-02-17 04:49:30 +00:00
|
|
|
// errorcheck
|
2009-12-15 22:26:50 +00:00
|
|
|
|
2016-04-10 21:32:26 +00:00
|
|
|
// Copyright 2009 The Go Authors. All rights reserved.
|
2009-12-15 22:26:50 +00: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 18:23:11 +00:00
|
|
|
func f(x int, y ...int) // ok
|
2009-12-15 22:26:50 +00:00
|
|
|
|
2012-12-13 23:11:31 +00:00
|
|
|
func g(x int, y float32) (...) // ERROR "[.][.][.]" "final argument"
|
2009-12-15 22:26:50 +00:00
|
|
|
|
2010-06-14 18:23:11 +00:00
|
|
|
func h(x, y ...int) // ERROR "[.][.][.]"
|
2009-12-15 22:26:50 +00:00
|
|
|
|
2012-12-13 23:11:31 +00:00
|
|
|
func i(x int, y ...int, z float32) // ERROR "[.][.][.]"
|
2009-12-15 22:26:50 +00:00
|
|
|
|
2010-06-14 18:23:11 +00:00
|
|
|
var x ...int; // ERROR "[.][.][.]|syntax|type"
|
2009-12-15 22:26:50 +00:00
|
|
|
|
2010-06-14 18:23:11 +00:00
|
|
|
type T ...int; // ERROR "[.][.][.]|syntax|type"
|