Rename: Quote parameter name when necessary
#KT-13463 Fixed
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test/test.kt",
|
||||
"newName": "22",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
Reference in New Issue
Block a user