mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
12 lines
318 B
Plaintext
Vendored
12 lines
318 B
Plaintext
Vendored
// PARAM_TYPES: kotlin.Array<kotlin.Int>
|
|
// PARAM_DESCRIPTOR: value-parameter 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>) = t.check { it + 1 > 1 } |