Debian Codegraph @

test/fixedbugs/issue41440.go

raw
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
7 package p
8
9 func f(...int) {}
10
11 func g() {
12 var x []int
13 f(x, x...) // ERROR "have \(\[\]int, \.\.\.int\)|too many arguments"
14 }