Introduce Variable: Amend semicolons to updated expression
#KT-2098 Fixed
This commit is contained in:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user