Source file src/internal/types/testdata/fixedbugs/issue70150.go
1 // Copyright 2024 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package p 6 7 func _() { 8 var values []int 9 vf(values /* ERROR "(variable of type []int) as string value" */) 10 vf(values...) /* ERROR "have (...int)" */ 11 vf("ab", "cd", values /* ERROR "have (string, string, ...int)" */ ...) 12 } 13 14 func vf(method string, values ...int) { 15 } 16