Files
kotlin-fork/compiler/testData/ir/irText/classes/kt45853.kt
T
Sergej Jaskiewicz da9f0e7af8 [test] Get rid of SKIP_SIGNATURE_DUMP directive in irText tests
Sometimes there are legitimate reasons to have two separate signature
dumps for K1 and K2.

^KT-61797 Fixed
2024-01-15 13:10:19 +00:00

31 lines
523 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// SKIP_KT_DUMP
// DUMP_EXTERNAL_CLASS: X
// DUMP_EXTERNAL_CLASS: AX
// SEPARATE_SIGNATURE_DUMP_FOR_K2
// ^ Fake overrides have divirging @EnhancedNullability in K1 and K2
// FILE: kt45853.kt
abstract class A {
abstract val a: A?
}
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();
}
}