[FIR] KT-42962: Ensure the issue is not present in K2

Merge-request: KT-MR-7288
Merged-by: Nikolay Lunyak <nikolay.lunyak@jetbrains.com>
This commit is contained in:
Nikolay Lunyak
2022-10-04 12:27:17 +00:00
committed by Space Team
parent 049b6899b7
commit e2fdb352f1
7 changed files with 75 additions and 0 deletions
@@ -0,0 +1,14 @@
// MODULE: lib
// FILE: TestA.java
public abstract class TestA {
public abstract int getProp();
}
// MODULE: main(lib)
// FILE: TestB.kt
abstract class TestB : TestA() {
<!ACCIDENTAL_OVERRIDE!>@JvmField
protected var prop: Int<!> = 0
}