4cd7193047
#KT-11018 Fixed
12 lines
298 B
Plaintext
Vendored
12 lines
298 B
Plaintext
Vendored
// PARAM_TYPES: kotlin.Int
|
|
// PARAM_DESCRIPTOR: value-parameter it: kotlin.Int defined in foo.<anonymous>
|
|
fun <T> Array<T>.check(f: (T) -> Boolean): Boolean = false
|
|
|
|
// SIBLING:
|
|
fun foo(t: Array<Int>) {
|
|
if (t.check { i(it) > 1 }) {
|
|
println("OK")
|
|
}
|
|
}
|
|
|
|
private fun i(it: Int) = it + 1 |