src/internal/types/testdata/fixedbugs/issue70526.go
raw| 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 f(...any) |
| 8 | |
| 9 | func _(x int, s []int) { |
| 10 | f(0, x /* ERROR "have (number, int...)\n\twant (...any)" */ ...) |
| 11 | f(0, s /* ERROR "have (number, []int...)\n\twant (...any)" */ ...) |
| 12 | f(0, 0 /* ERROR "have (number, number...)\n\twant (...any)" */ ...) |
| 13 | } |