KT-5214 Annotation to provide platform name to avoid signature conflict
#KT-5214 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package test;
|
||||
|
||||
public class PlatformName {
|
||||
public static void main(String[] args) {
|
||||
TestPackage.bar();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
import kotlin.platform.*
|
||||
|
||||
[platformName("bar")]
|
||||
fun foo() {}
|
||||
@@ -0,0 +1,8 @@
|
||||
package test;
|
||||
|
||||
public class PlatformName {
|
||||
public static void main(String[] args) {
|
||||
int x = TestPackage.vget();
|
||||
TestPackage.vset(0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
import kotlin.platform.*
|
||||
|
||||
var v: Int = 1
|
||||
[platformName("vget")]
|
||||
get
|
||||
[platformName("vset")]
|
||||
set
|
||||
Reference in New Issue
Block a user