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

10 lines
153 B
Kotlin
Vendored

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