Rename: Fix inplace refactoring for declarations with backticked names
#KT-15859 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fun `fun`(n: Int) {
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
`fun`(1)
|
||||
`fun`(2)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fun /*rename*/foo(n: Int) {
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo(1)
|
||||
foo(2)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test.kt",
|
||||
"newName": "`fun`"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fun foo(n: Int) {
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo(1)
|
||||
foo(2)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fun /*rename*/`fun`(n: Int) {
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
`fun`(1)
|
||||
`fun`(2)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test.kt",
|
||||
"newName": "foo"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fun foo(n: Int) {
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo(1)
|
||||
foo(2)
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fun `fun`/*rename*/(n: Int) {
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
`fun`(1)
|
||||
`fun`(2)
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test.kt",
|
||||
"newName": "foo"
|
||||
}
|
||||
Reference in New Issue
Block a user