mirror of
https://github.com/golang/go
synced 2024-11-15 00:30:31 -07:00
2dfb423e6e
I was wrong. There was a need to loop here. Fixes #24761 Change-Id: If13b3ab72febde930bdaebdddd1c05e0d0446020 Reviewed-on: https://go-review.googlesource.com/105615 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
16 lines
294 B
Go
16 lines
294 B
Go
// Copyright 2018 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 a
|
|
|
|
type T2 struct{}
|
|
|
|
func (t *T2) M2(a, b float64) {
|
|
variadic(a, b)
|
|
}
|
|
|
|
func variadic(points ...float64) {
|
|
println(points)
|
|
}
|