1
0
mirror of https://github.com/golang/go synced 2024-11-21 18:14:42 -07:00

gc: allow ... in method lists

R=ken2
https://golang.org/cl/179070
This commit is contained in:
Russ Cox 2009-12-15 16:20:37 -08:00
parent 45ca9f7a9e
commit 101f499fa5
2 changed files with 9 additions and 1 deletions

View File

@ -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;

8
test/fixedbugs/bug232.go Normal file
View File

@ -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(...) }