Files
kotlin-fork/idea/testData/refactoring/extractFunction/parameters/it/simpleIt.kt
T

10 lines
293 B
Kotlin

// PARAM_TYPES: kotlin.Int
// PARAM_DESCRIPTOR: value-parameter val 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 { <selection>it + 1</selection> > 1 }) {
println("OK")
}
}