diff options
author | Russ Cox <rsc@golang.org> | 2009-12-15 16:20:37 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-12-15 16:20:37 -0800 |
commit | 101f499fa572da4ef6c56cfa7b62f90b94c10d5b (patch) | |
tree | c34bc103bfbb07ee297ea6672d19de20fc55b5a5 | |
parent | 45ca9f7a9efdf5d191f1f23e08cb719edf3a8fe9 (diff) | |
download | go-101f499fa572da4ef6c56cfa7b62f90b94c10d5b.tar.gz go-101f499fa572da4ef6c56cfa7b62f90b94c10d5b.zip |
gc: allow ... in method lists
R=ken2
https://golang.org/cl/179070
-rw-r--r-- | src/cmd/gc/go.y | 2 | ||||
-rw-r--r-- | test/fixedbugs/bug232.go | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/cmd/gc/go.y b/src/cmd/gc/go.y index a8b921db5a..6d86a6a99f 100644 --- a/src/cmd/gc/go.y +++ b/src/cmd/gc/go.y @@ -1285,7 +1285,7 @@ indcl: '(' oarg_type_list_ocomma ')' fnres { // without func keyword - $2 = checkarglist($2, 0); + $2 = checkarglist($2, 1); $$ = nod(OTFUNC, fakethis(), N); $$->list = $2; $$->rlist = $4; diff --git a/test/fixedbugs/bug232.go b/test/fixedbugs/bug232.go new file mode 100644 index 0000000000..c0b8eb69ad --- /dev/null +++ b/test/fixedbugs/bug232.go @@ -0,0 +1,8 @@ +// $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 +type I interface { X(...) } |