Files
kotlin-fork/idea/testData/inspectionsLocal/moveVariableDeclarationIntoWhen/hasContinue.kt
T

12 lines
218 B
Kotlin
Vendored

// PROBLEM: none
fun test() {
for (i in 1..10) {
val <caret>some = foo(i) ?: continue
when (some) {
"some" -> some
else -> ""
}
}
}
fun foo(i: Int): String? = ""