mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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
9 lines
114 B
Kotlin
9 lines
114 B
Kotlin
|
|
fun foo(a: Boolean, b: Boolean) {
|
|
val x = a
|
|
when<caret> ("") {
|
|
else -> { }
|
|
|
|
}
|
|
val y = b
|
|
} |