Russ Cox | d122bb2 | 2009-12-15 14:26:50 -0800 | [diff] [blame] | 1 | // errchk $G -e $D/$F.go |
| 2 | |
| 3 | // Copyright 2009 The Go Authors. All rights reserved. |
| 4 | // Use of this source code is governed by a BSD-style |
| 5 | // license that can be found in the LICENSE file. |
| 6 | |
| 7 | package main |
| 8 | |
Russ Cox | 6672b40 | 2010-06-14 11:23:11 -0700 | [diff] [blame] | 9 | func f(x int, y ...int) // ok |
Russ Cox | d122bb2 | 2009-12-15 14:26:50 -0800 | [diff] [blame] | 10 | |
| 11 | func g(x int, y float) (...) // ERROR "[.][.][.]" |
| 12 | |
Russ Cox | 6672b40 | 2010-06-14 11:23:11 -0700 | [diff] [blame] | 13 | func h(x, y ...int) // ERROR "[.][.][.]" |
Russ Cox | d122bb2 | 2009-12-15 14:26:50 -0800 | [diff] [blame] | 14 | |
Russ Cox | 6672b40 | 2010-06-14 11:23:11 -0700 | [diff] [blame] | 15 | func i(x int, y ...int, z float) // ERROR "[.][.][.]" |
Russ Cox | d122bb2 | 2009-12-15 14:26:50 -0800 | [diff] [blame] | 16 | |
Russ Cox | 6672b40 | 2010-06-14 11:23:11 -0700 | [diff] [blame] | 17 | var x ...int; // ERROR "[.][.][.]|syntax|type" |
Russ Cox | d122bb2 | 2009-12-15 14:26:50 -0800 | [diff] [blame] | 18 | |
Russ Cox | 6672b40 | 2010-06-14 11:23:11 -0700 | [diff] [blame] | 19 | type T ...int; // ERROR "[.][.][.]|syntax|type" |