2009-12-15 15:26:50 -07:00
|
|
|
// errchk $G -e $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 f(x int, y ...) // ok
|
|
|
|
|
|
|
|
func g(x int, y float) (...) // ERROR "[.][.][.]"
|
|
|
|
|
|
|
|
func h(x, y ...) // ERROR "[.][.][.]"
|
|
|
|
|
|
|
|
func i(x int, y ..., z float) // ERROR "[.][.][.]"
|
|
|
|
|
2010-01-29 23:38:39 -07:00
|
|
|
var x ...; // ERROR "[.][.][.]|syntax|type"
|
2009-12-15 15:26:50 -07:00
|
|
|
|
2010-01-29 23:38:39 -07:00
|
|
|
type T ...; // ERROR "[.][.][.]|syntax|type"
|