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.
10 lines
226 B
Kotlin
Vendored
10 lines
226 B
Kotlin
Vendored
// TODO: Enable when JS backend supports Java class library
|
|
// TARGET_BACKEND: JVM
|
|
public class SomeClass() : java.lang.Object() {
|
|
}
|
|
|
|
public fun box():String {
|
|
System.out?.println(SomeClass().getClass())
|
|
return "OK"
|
|
}
|