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

11 lines
160 B
Kotlin
Vendored

// PROBLEM: none
fun foo(): Int {
val a<caret> = if (true) true
else false
return when (a) {
true -> 42
else -> null
} ?: 55
}