334cab7357
The only case we may need fake override for private members is a situation when class refers itself with different type arguments. So in this commit we forbid such fake overrides when we can prove that class does not refers itself here.
22 lines
383 B
Kotlin
Vendored
22 lines
383 B
Kotlin
Vendored
// IGNORE_BACKEND: JS_IR
|
|
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS, NATIVE
|
|
|
|
package test
|
|
|
|
interface Z{
|
|
|
|
private fun extension(): String {
|
|
return "OK"
|
|
}
|
|
}
|
|
|
|
object Z2 : Z {
|
|
|
|
}
|
|
|
|
fun box() : String {
|
|
val size = Class.forName("test.Z2").declaredMethods.size
|
|
if (size != 0) return "fail: $size"
|
|
return "OK"
|
|
} |