Introduce Variable: Properly convert function body to block when needed
#KT-5353
This commit is contained in:
@@ -1 +1,6 @@
|
||||
fun x(): Int = println(<selection>1</selection>)
|
||||
fun foo(a: Int) =
|
||||
if (a > 1) {
|
||||
(<selection>a + 1</selection>) * (a - 1)
|
||||
} else {
|
||||
a * (a + 1)
|
||||
}
|
||||
Reference in New Issue
Block a user