Rename: @JvmName support

#KT-8044 Fixed
 #KT-9432 Fixed
This commit is contained in:
Alexey Sedunov
2016-05-25 15:26:03 +03:00
parent ff4c16d342
commit 96132fa61a
198 changed files with 1928 additions and 87 deletions
@@ -0,0 +1,7 @@
package test;
class Test {
{
new A().bar();
}
}
@@ -0,0 +1,10 @@
package test
class A {
@JvmName("bar")
fun first() = 1
}
fun test() {
A().first()
}
@@ -0,0 +1,7 @@
package test;
class Test {
{
new A()./*rename*/foo();
}
}
@@ -0,0 +1,10 @@
package test
class A {
@JvmName("foo")
fun first() = 1
}
fun test() {
A().first()
}
@@ -0,0 +1,7 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test/JavaClient.java",
"newName": "bar",
"withRuntime": "true",
"byRef": "true"
}