Do not mangle internal @PublishedApi functions
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
//WITH_REFLECT
|
||||
class A {
|
||||
@PublishedApi
|
||||
internal fun published() = "OK"
|
||||
|
||||
inline fun test() = published()
|
||||
|
||||
}
|
||||
|
||||
fun box() : String {
|
||||
val clazz = A::class.java
|
||||
if (clazz.getDeclaredMethod("published") == null) return "fail"
|
||||
return "OK"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
class A {
|
||||
|
||||
@PublishedApi
|
||||
internal fun published() = "OK"
|
||||
|
||||
inline fun test() = published()
|
||||
|
||||
}
|
||||
|
||||
fun box() : String {
|
||||
return A().test()
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
public final class A {
|
||||
public method <init>(): void
|
||||
public final @kotlin.PublishedApi @org.jetbrains.annotations.NotNull method published(): java.lang.String
|
||||
public final @org.jetbrains.annotations.NotNull method test(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class NoManglingKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
public final class A {
|
||||
public method <init>(): void
|
||||
public final @kotlin.PublishedApi @org.jetbrains.annotations.NotNull method published(): java.lang.String
|
||||
public final @org.jetbrains.annotations.NotNull method test(): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class SimpleKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Reference in New Issue
Block a user