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

11 lines
136 B
Kotlin
Vendored

// PROBLEM: none
fun test() = 42
fun foo() {
val <caret>a =
test()
when (a) {
1 -> a
else -> 24
}
}