Introduce Variable: Amend semicolons to updated expression

#KT-2098 Fixed
This commit is contained in:
Alexey Sedunov
2014-12-24 14:47:38 +03:00
parent 2fe77d2c6c
commit c7a71827a7
6 changed files with 51 additions and 1 deletions
@@ -0,0 +1,5 @@
fun bar(): Int = 1
fun foo() {
<selection>bar()</selection>;
}
@@ -0,0 +1,5 @@
fun bar(): Int = 1
fun foo() {
val i = bar();
}
@@ -0,0 +1,6 @@
fun bar(): Int = 1
fun baz()
fun foo() {
if (true) <selection>bar()</selection>; else baz()
}
@@ -0,0 +1,8 @@
fun bar(): Int = 1
fun baz()
fun foo() {
if (true) {
val i = bar();
} else baz()
}