23 lines
270 B
Kotlin
Vendored
23 lines
270 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
var result = "fail"
|
|
|
|
interface B {
|
|
|
|
private fun test() {
|
|
result = "OK"
|
|
}
|
|
|
|
class Z {
|
|
fun ztest(b: B) {
|
|
b.test()
|
|
}
|
|
}
|
|
}
|
|
|
|
class C : B
|
|
|
|
fun box(): String {
|
|
B.Z().ztest(C())
|
|
return result
|
|
}
|