1// errorcheck
2
3// Copyright 2020 The Go Authors. All rights reserved.  Use of this
4// source code is governed by a BSD-style license that can be found in
5// the LICENSE file.
6
7package p
8
9func f(...int) {}
10
11func g() {
12	var x []int
13	f(x, x...) // ERROR "have \(\[\]int, \.\.\.int\)|too many arguments"
14}
15