Files
Kristoffer Andersen 2835cd9d0d [kotlin] KTIJ-22883 WhenWithOnlyElseInspection
Ported and simplified the existing WhenWithOnlyElseInspection to the analysis
API. The simplification was partly forced by the new inspection framework which
enforces a strict staging of 1) semantic analysis then 2) transformation.

^KTIJ-22883 fixed

GitOrigin-RevId: 8a1fb5f7604416d0ae6bda8045134642ae523fc4
2022-11-21 14:22:14 +00:00

9 lines
114 B
Kotlin

fun foo(a: Boolean, b: Boolean) {
val x = a
when<caret> ("") {
else -> { }
}
val y = b
}