Files
kotlin-fork/idea/testData/refactoring/introduceVariable/IntroduceLambdaAndCreateBlock.kt.after
T
2015-11-16 11:29:59 +03:00

8 lines
160 B
Plaintext
Vendored

// WITH_RUNTIME
fun foo(p: Int, list: List<Int>) {
if (p > 0) {
val predicate: (Int) -> Boolean = { it > 0 }
list.filter(predicate)
}
}