blob: 8ecfb8a8c0496ba55fd4f13014742d3281ab368f [file] [log] [blame]
// IGNORE_BACKEND: JS, NATIVE
//WITH_REFLECT
class A {
@PublishedApi
internal fun published() = "O"
@PublishedApi
internal var publishedProp = "K"
inline fun test() = published() + publishedProp
}
fun box() : String {
val clazz = A::class.java
if (clazz.getDeclaredMethod("published") == null) return "fail 1"
if (clazz.getDeclaredMethod("getPublishedProp") == null) return "fail 2"
if (clazz.getDeclaredMethod("setPublishedProp", String::class.java) == null) return "fail 3"
return A().test()
}