blob: 510e2fc632447299624464f0b483e96e0b4d46ff (
plain)
1
2
3
4
5
6
7
8
9
10
|
// PARAM_TYPES: kotlin.Array<kotlin.Int>
// PARAM_DESCRIPTOR: value-parameter 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 { <selection>it.check{ it + 1 > 1 }</selection> }) {
println("OK")
}
}
|