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

8 lines
139 B
Kotlin
Vendored

// PROBLEM: none
// WITH_RUNTIME
fun test(b: Boolean) {
<caret>when(b) {
true -> println(1)
false -> println(2)
}
}