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,8 @@
package test;
class Test {
{
new A().getFoo();
new A().setFirst(1);
}
}
@@ -0,0 +1,11 @@
package test
class A {
@get:JvmName("getFoo")
var first = 1
}
fun test() {
A().first
A().first = 1
}
@@ -0,0 +1,8 @@
package test;
class Test {
{
new A().getFoo();
new A()./*rename*/setBar(1);
}
}
@@ -0,0 +1,12 @@
package test
class A {
@get:JvmName("getFoo")
@set:JvmName("setBar")
var first = 1
}
fun test() {
A().first
A().first = 1
}
@@ -0,0 +1,7 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test/JavaClient.java",
"newName": "setFirst",
"withRuntime": "true",
"byRef": "true"
}