KT-4794: Added functionality to KT-4574: Split If. Intention is now offered inside IF keyword
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
fun doSomething<T>(a: T) {}
|
||||
|
||||
fun foo() {
|
||||
val a = true
|
||||
val b = false
|
||||
val c = true
|
||||
val d = false
|
||||
if (a || b) {
|
||||
if (c) {
|
||||
doSomething("test")
|
||||
} else if (d) {
|
||||
doSomething("test")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user