1
0
mirror of https://github.com/golang/go synced 2024-11-26 17:16:54 -07:00
go/test/fixedbugs/issue24761.dir/a.go
Josh Bleecher Snyder 2dfb423e6e cmd/compile: loop to ensure all autogenerated functions are compiled
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>
2018-04-11 23:46:30 +00:00

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)
}