Convert "lift return / assignment" intentions into a single inspection
Also includes minor test fix, related to KT-14900
This commit is contained in:
committed by
Mikhail Glukhikh
parent
8f33bd0768
commit
2d1abda9a1
+12
@@ -0,0 +1,12 @@
|
||||
// PROBLEM: none
|
||||
|
||||
fun test(n: Int) {
|
||||
val a: String
|
||||
val b: String
|
||||
<caret>if (n == 1)
|
||||
a = "one"
|
||||
else if (n == 2)
|
||||
a = "two"
|
||||
else
|
||||
b = "three"
|
||||
}
|
||||
Reference in New Issue
Block a user