Files
kotlin-fork/idea/testData/refactoring/extractFunction/parameters/it/innerIt.kt.after
T
Valentin Kipyatkov 4cd7193047 KT-11018 Ctrl + Mouse Hover shows a var as val
#KT-11018 Fixed
2016-02-13 10:20:20 +03:00

12 lines
329 B
Plaintext
Vendored

// 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{ i(it) > 1 } }) {
println("OK")
}
}
private fun i(it: Int) = it + 1