d40fd440b0
#KT-7433 Fixed #KT-7351 Fixed
9 lines
249 B
Kotlin
Vendored
9 lines
249 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE
|
|
|
|
public inline fun <S, T: S> Iterable<T>.reduce1(operation: (S, T) -> S): S = throw Exception()
|
|
|
|
fun test(ints: List<Int>) {
|
|
val f: () -> Unit = {
|
|
ints.reduce1 { a, b -> a + b }
|
|
}
|
|
} |