Rename: Quote parameter name when necessary

#KT-13463 Fixed
This commit is contained in:
Alexey Sedunov
2016-08-16 15:15:23 +03:00
parent 238f99aa3d
commit 5e577c391c
7 changed files with 26 additions and 2 deletions
@@ -3,7 +3,7 @@ class `A B` {}
val THAT_A_B: `A B` = `A B`()
val A_B: `A B` = `A B`()
fun localize(anA: `A B`, aPrefixedA: `A B`) {
fun localize(`anA BPar`: `A B`, `aPrefixedA BPar`: `A B`) {
val `a BVal`: `A B` = `A B`()
val `prefixedA BVal`: `A B` = `A B`()
}
@@ -0,0 +1,5 @@
package test
fun foo(`22`: Int) {
}
@@ -0,0 +1,5 @@
package test
fun foo(/*rename*/a: Int) {
}
@@ -0,0 +1,6 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test/test.kt",
"newName": "22",
"withRuntime": "true"
}