Files
kotlin-fork/idea/testData/intentions/invertIfCondition/addSurroundingBlock_preserveComments.kt
T
Valentin Kipyatkov 8da5af3a10 KT-11974 Invert if-condition intention loses comments
#KT-11974 Fixed
2016-05-10 15:40:51 +03:00

10 lines
169 B
Kotlin
Vendored

fun foo(list: List<String>) {
for (s in list)
<caret>if (s.length > 0 /* check it */) /* then */ {
bar() // bar()
}
}
}
fun bar(){}