Made rename refactoring inplace for loop, catch and function literal parameters.
#KT-1296 fixed
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
fun f() {
|
||||
for (<caret>i in 1..2) {
|
||||
println(i + i)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
fun f() {
|
||||
for (<caret>j in 1..2) {
|
||||
println(j + j)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun f() {
|
||||
val f: (Int) -> Int = { <caret>x -> x + x }
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun f() {
|
||||
val f: (Int) -> Int = { <caret>y -> y + y }
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun f() {
|
||||
val f = { (<caret>x: Int) -> x + x }
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun f() {
|
||||
val f = { (<caret>y: Int) -> y + y }
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fun f(<caret>a: String) {
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fun <caret>foo(a: Int) {
|
||||
}
|
||||
|
||||
|
||||
fun f() {
|
||||
foo(1)
|
||||
foo(217)
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fun f() {
|
||||
fun <caret>foo(a: Int) {
|
||||
}
|
||||
|
||||
foo(1)
|
||||
foo(217)
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fun f() {
|
||||
fun <caret>bar(a: Int) {
|
||||
}
|
||||
|
||||
bar(1)
|
||||
bar(217)
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
fun f() {
|
||||
val <caret>x = 5
|
||||
println(x + x * x)
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
fun f() {
|
||||
val <caret>y = 5
|
||||
println(y + y * y)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
val <caret>x = 5
|
||||
|
||||
fun f() {
|
||||
println(x + x * x)
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fun f() {
|
||||
try {
|
||||
}
|
||||
catch (<caret>e: Exception) {
|
||||
println(e)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fun f() {
|
||||
try {
|
||||
}
|
||||
catch (<caret>e1: Exception) {
|
||||
println(e1)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user