blob: 81bc908569ef4f47a2686572ced52d7c0e0cbd71 [file] [log] [blame]
Russ Coxd122bb22009-12-15 14:26:50 -08001// 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
7package main
8
Russ Cox6672b402010-06-14 11:23:11 -07009func f(x int, y ...int) // ok
Russ Coxd122bb22009-12-15 14:26:50 -080010
11func g(x int, y float) (...) // ERROR "[.][.][.]"
12
Russ Cox6672b402010-06-14 11:23:11 -070013func h(x, y ...int) // ERROR "[.][.][.]"
Russ Coxd122bb22009-12-15 14:26:50 -080014
Russ Cox6672b402010-06-14 11:23:11 -070015func i(x int, y ...int, z float) // ERROR "[.][.][.]"
Russ Coxd122bb22009-12-15 14:26:50 -080016
Russ Cox6672b402010-06-14 11:23:11 -070017var x ...int; // ERROR "[.][.][.]|syntax|type"
Russ Coxd122bb22009-12-15 14:26:50 -080018
Russ Cox6672b402010-06-14 11:23:11 -070019type T ...int; // ERROR "[.][.][.]|syntax|type"