Files
kotlin-fork/idea/testData/refactoring/introduceVariable/IntroduceLambdaAndCreateBlock.kt
T
Alexey Sedunov 0f5dff483a Introduce Variable: Proper occurrence search in generated block expression
#KT-7836 Fixed
 #KT-8443 Fixed
 #EA-71411 Fixed
2015-09-03 22:06:09 +03:00

5 lines
114 B
Kotlin
Vendored

// WITH_RUNTIME
fun foo(p: Int, list: List<Int>) {
if (p > 0) list.filter <selection>{ it > 0 }</selection>
}