Source file test/fixedbugs/issue45913.go
1 // errorcheck 2 3 // Copyright 2021 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. 6 7 package main 8 9 import ( 10 "fmt" 11 ) 12 13 func f(s1, s2 string) { fmt.Printf("%s %s", s1, s2) } 14 15 func main() { 16 f([2]string{"a", "b"}...) // ERROR "invalid use of .*[.][.][.]|cannot use [.][.][.] in call to non-variadic" 17 } 18