diff options
author | Russ Cox <rsc@golang.org> | 2010-06-14 11:23:11 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-06-14 11:23:11 -0700 |
commit | d35af2acd4fbcc5e18b4c041cc50d254965f5fb7 (patch) | |
tree | d7b24b60e0d16267bda654b344fcd0ab5e637159 /test | |
parent | 987450519e9ee474431338d2a8f0483ec7eac418 (diff) | |
download | go-d35af2acd4fbcc5e18b4c041cc50d254965f5fb7.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.go | 14 | ||||
-rw-r--r-- | test/fixedbugs/bug228.go | 10 | ||||
-rw-r--r-- | test/fixedbugs/bug232.go | 2 | ||||
-rw-r--r-- | test/fixedbugs/bug252.go | 2 |
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" } |