1c3b895fc0
Current implementation of calls with super qualifier relies on invokespecial, which has some more constraints than regular virtual invocations. When those constraints aren't met, accessors are needed.
22 lines
244 B
Kotlin
Vendored
22 lines
244 B
Kotlin
Vendored
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
|
|
}
|