summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/refactoring/extractFunction/parameters/it/innerIt.kt
blob: 28e591ff072281a2856b79f33ee94d79f750a596 (plain)
1
2
3
4
5
6
7
8
9
10
// PARAM_TYPES: kotlin.Int
// PARAM_DESCRIPTOR: value-parameter it: kotlin.Int defined in foo.<anonymous>.<anonymous>
fun <T> Array<T>.check(f: (T) -> Boolean): Boolean = false

// SIBLING:
fun foo(t: Array<Array<Int>>) {
    if (t.check { it.check{ <selection>it + 1</selection> > 1 } }) {
        println("OK")
    }
}