summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-06-14 11:23:11 -0700
committerRuss Cox <rsc@golang.org>2010-06-14 11:23:11 -0700
commit656ddf0e0a1fd8fc56d3a02be66a5a259744d6d4 (patch)
treed7b24b60e0d16267bda654b344fcd0ab5e637159 /test
parent5be6521d14c112e5b55f6cd4bd591b619ea9e29d (diff)
downloadgolang-656ddf0e0a1fd8fc56d3a02be66a5a259744d6d4.tar.gz
remove uses of ... from tree, add one test
R=r CC=golang-dev http://codereview.appspot.com/1662041
Diffstat (limited to 'test')
-rw-r--r--test/fixedbugs/bug153.go14
-rw-r--r--test/fixedbugs/bug228.go10
-rw-r--r--test/fixedbugs/bug232.go2
-rw-r--r--test/fixedbugs/bug252.go2
4 files changed, 7 insertions, 21 deletions
diff --git a/test/fixedbugs/bug153.go b/test/fixedbugs/bug153.go
deleted file mode 100644
index 609397fed..000000000
--- a/test/fixedbugs/bug153.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// errchk $G $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(args ...) {
-}
-
-func main() {
- f(nil); // ERROR "nil"
-}
diff --git a/test/fixedbugs/bug228.go b/test/fixedbugs/bug228.go
index 243d20ee7..81bc90856 100644
--- a/test/fixedbugs/bug228.go
+++ b/test/fixedbugs/bug228.go
@@ -6,14 +6,14 @@
package main
-func f(x int, y ...) // ok
+func f(x int, y ...int) // ok
func g(x int, y float) (...) // ERROR "[.][.][.]"
-func h(x, y ...) // ERROR "[.][.][.]"
+func h(x, y ...int) // ERROR "[.][.][.]"
-func i(x int, y ..., z float) // ERROR "[.][.][.]"
+func i(x int, y ...int, z float) // ERROR "[.][.][.]"
-var x ...; // ERROR "[.][.][.]|syntax|type"
+var x ...int; // ERROR "[.][.][.]|syntax|type"
-type T ...; // ERROR "[.][.][.]|syntax|type"
+type T ...int; // ERROR "[.][.][.]|syntax|type"
diff --git a/test/fixedbugs/bug232.go b/test/fixedbugs/bug232.go
index c0b8eb69a..99bd02ff6 100644
--- a/test/fixedbugs/bug232.go
+++ b/test/fixedbugs/bug232.go
@@ -5,4 +5,4 @@
// license that can be found in the LICENSE file.
package main
-type I interface { X(...) }
+type I interface { X(...int) }
diff --git a/test/fixedbugs/bug252.go b/test/fixedbugs/bug252.go
index 7ed8b87cb..bd11b86eb 100644
--- a/test/fixedbugs/bug252.go
+++ b/test/fixedbugs/bug252.go
@@ -6,7 +6,7 @@
package main
-func f(args ...) {
+func f(args ...int) {
g(args) // ERROR "[.][.][.] mismatch"
}