JS: disable mangling for PublishedApi. Export declarations marked with PublishedApi. See KT-15442
This commit is contained in:
+5
-1
@@ -1,3 +1,5 @@
|
||||
// MODULE: lib
|
||||
// FILE: lib.kt
|
||||
class A {
|
||||
|
||||
@PublishedApi
|
||||
@@ -7,6 +9,8 @@ class A {
|
||||
|
||||
}
|
||||
|
||||
fun box() : String {
|
||||
// MODULE: main(lib)
|
||||
// FILE: main.kt
|
||||
fun box(): String {
|
||||
return A().test()
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// MODULE: lib
|
||||
// FILE: lib.kt
|
||||
@PublishedApi
|
||||
internal fun published() = "OK"
|
||||
|
||||
inline fun test() = published()
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: main.kt
|
||||
fun box() = test()
|
||||
@@ -6,6 +6,6 @@ public final class A {
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class SimpleKt {
|
||||
public final class MainKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
public final class LibKt {
|
||||
public final static @kotlin.PublishedApi @org.jetbrains.annotations.NotNull method published(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method test(): java.lang.String
|
||||
}
|
||||
|
||||
public final class MainKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Reference in New Issue
Block a user