Files
kotlin-fork/idea/testData/inspectionsLocal/moveVariableDeclarationIntoWhen/notApplicableMultiLineWithOneLineInitializer.kt
T
2020-09-09 22:31:56 +07:00

11 lines
136 B
Kotlin
Vendored

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