Rename: Quote non-identifier names in Kotlin references

#KT-9156 Fixed
This commit is contained in:
Alexey Sedunov
2016-05-24 15:30:02 +03:00
parent a743098aba
commit 691de677b3
8 changed files with 34 additions and 1 deletions
@@ -0,0 +1,5 @@
public class JFoo {
public void fun() {
}
}
@@ -0,0 +1,3 @@
fun test(foo: JFoo) {
foo.`fun`()
}
@@ -0,0 +1,5 @@
public class JFoo {
public void /*rename*/foo() {
}
}
@@ -0,0 +1,3 @@
fun test(foo: JFoo) {
foo.foo()
}
@@ -0,0 +1,5 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "JFoo.java",
"newName": "fun"
}