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().foo();
}
}
@@ -0,0 +1,10 @@
package test
class A {
@JvmName("foo")
fun second() = 1
}
fun test() {
A().second()
}
@@ -0,0 +1,7 @@
package test;
class Test {
{
new A().foo();
}
}
@@ -0,0 +1,10 @@
package test
class A {
@JvmName("foo")
fun /*rename*/first() = 1
}
fun test() {
A().first()
}
@@ -0,0 +1,6 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test/test.kt",
"newName": "second",
"withRuntime": "true"
}