Files
kotlin-fork/idea/testData/inspectionsLocal/moveVariableDeclarationIntoWhen/inBinaryExpression.kt
T
2019-03-21 16:32:41 +07:00

9 lines
137 B
Kotlin
Vendored

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