Deprecate JVM platform annotations in favor of capitilized themselves
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
@jvmName("Fail")
|
||||
@JvmName("Fail")
|
||||
fun OK() {}
|
||||
|
||||
fun box() = ::OK.name
|
||||
|
||||
compiler/testData/codegen/boxWithStdlib/reflection/mapping/platformStatic/companionObjectFunction.kt
Vendored
+1
-1
@@ -21,7 +21,7 @@ fun box(): String {
|
||||
|
||||
val staticMethod = javaClass<C>().getDeclaredMethod("foo", javaClass<String>())
|
||||
val k2 = staticMethod.kotlinFunction ?:
|
||||
return "Fail: no Kotlin function found for static bridge for @jvmStatic method in companion object C::foo"
|
||||
return "Fail: no Kotlin function found for static bridge for @JvmStatic method in companion object C::foo"
|
||||
assertEquals(3, k2.call(C, "ghi"))
|
||||
|
||||
failsWith(javaClass<NullPointerException>()) { k2.call(null, "")!! }
|
||||
|
||||
Reference in New Issue
Block a user