Files
kotlin-fork/idea/testData/inspectionsLocal/simplifyWhenWithBooleanConstantCondition/noBoolean.kt
T
2017-11-10 15:34:11 +03:00

8 lines
133 B
Kotlin
Vendored

// PROBLEM: none
// WITH_RUNTIME
fun test(i: Int) {
<caret>when {
i == 1 -> println(1)
else -> println(2)
}
}