diff --git a/src/cmd/gc/go.y b/src/cmd/gc/go.y index a8b921db5a2..6d86a6a99fa 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 00000000000..c0b8eb69ada --- /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(...) }