Source file src/internal/types/testdata/fixedbugs/issue78483.go
1 // Copyright 2026 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 for range f1 /* ERROR "cannot range over f1 (value of type func(func(...int) bool)): yield func of type func(...int) bool cannot be variadic" */ { 9 } 10 for range f2 /* ERROR "cannot range over f2 (value of type func(func(int, ...int) bool)): yield func of type func(int, ...int) bool cannot be variadic" */ { 11 } 12 } 13 14 func f1(func(...int) bool) {} 15 func f2(func(int, ...int) bool) {} 16