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