Introduce Parameter: Support conversion of local variables

#KT-9170 Fixed
This commit is contained in:
Alexey Sedunov
2015-12-10 19:35:37 +03:00
parent fff011f60a
commit d0b9b6a3b4
12 changed files with 117 additions and 46 deletions
@@ -0,0 +1,4 @@
fun foo(i: Int) {
val <caret>t = 1
val u = t + i
}
@@ -0,0 +1,3 @@
fun foo(i: Int, i1: Int = 1) {
val u = i1 + i
}
@@ -0,0 +1,4 @@
fun foo(i: Int) {
<selection>val t = 1</selection>
val u = t + i
}
@@ -0,0 +1,3 @@
fun foo(i: Int, i1: Int = 1) {
val u = i1 + i
}