Rename: @JvmName support
#KT-8044 Fixed #KT-9432 Fixed
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
package test;
|
||||
|
||||
class Test {
|
||||
{
|
||||
new A().foo();
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
class A {
|
||||
@JvmName("foo")
|
||||
fun second() = 1
|
||||
}
|
||||
|
||||
fun test() {
|
||||
A().second()
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test;
|
||||
|
||||
class Test {
|
||||
{
|
||||
new A().foo();
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
class A {
|
||||
@JvmName("foo")
|
||||
fun /*rename*/first() = 1
|
||||
}
|
||||
|
||||
fun test() {
|
||||
A().first()
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test/test.kt",
|
||||
"newName": "second",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
Reference in New Issue
Block a user