14 lines
379 B
Plaintext
14 lines
379 B
Plaintext
// PARAM_TYPES: kotlin.Array<kotlin.Int>
|
|
// PARAM_DESCRIPTOR: value-parameter val it: kotlin.Array<kotlin.Int> defined in foo.<anonymous>
|
|
fun <T> Array<T>.check(f: (T) -> Boolean): Boolean = false
|
|
|
|
// SIBLING:
|
|
fun foo(t: Array<Array<Int>>) {
|
|
if (t.check { b(it) }) {
|
|
println("OK")
|
|
}
|
|
}
|
|
|
|
private fun b(it: Array<Int>): Boolean {
|
|
return it.check { it + 1 > 1 }
|
|
} |