[klibs] header klibs should keep private interfaces

^KT-62213 Fixed
This commit is contained in:
Johan Bay
2023-09-29 11:33:47 +02:00
committed by Space Cloud
parent e43b634122
commit fb1d2278a0
4 changed files with 16 additions and 1 deletions
@@ -5,7 +5,11 @@ interface I {
fun iMethod(): Int
}
open class A : I {
private interface K {
fun kMethod() = 42
}
open class A : I, K {
override val iProperty: Int = 0
override fun iMethod(): Int = 10
@@ -7,6 +7,10 @@ fun useI(i: I) {
i.iMethod()
}
fun useK(k: A) {
k.kMethod()
}
fun useA(a: A) {
a.iProperty
a.iMethod()
@@ -37,6 +41,7 @@ fun useC(b: String) {
fun runAppAndReturnOk(): String {
useI(A())
useK(A())
useA(A())
useB(B())
useC("test")