mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
This is a hack required to accept [potentially] incorrect input provided by the front-end; see KT-46042.
22 lines
335 B
Kotlin
Vendored
22 lines
335 B
Kotlin
Vendored
// FILE: kt45853a.kt
|
|
abstract class A {
|
|
open val a: A? get() = null
|
|
}
|
|
|
|
class B() : AX() {
|
|
override fun getA(): X? = super.a
|
|
}
|
|
|
|
// FILE: X.java
|
|
public interface X {
|
|
X getA();
|
|
}
|
|
|
|
// FILE: AX.java
|
|
public abstract class AX extends A implements X {
|
|
@Override
|
|
public AX getA() {
|
|
return (AX) super.getA();
|
|
}
|
|
}
|