3 // Copyright 2013 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Issue 5231: method values lose their variadic property.
13 func (t T) NotVariadic(s []int) int {
17 func (t T) Variadic(s ...int) int {
22 NotVariadic(s []int) int
23 Variadic(s ...int) int
34 var s int = nv([]int{1, 2, 3})
41 var f1 func([]int) int = nv
42 var f2 func(...int) int = v