Introduce Variable: Convert property accessor body to block when needed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
val a = 2
|
||||
|
||||
val x: Int get() =
|
||||
if (a > 1) {
|
||||
(<selection>a + 1</selection>) * (a - 1)
|
||||
} else {
|
||||
a * (a + 1)
|
||||
}
|
||||
Reference in New Issue
Block a user