FE: add test reproducing KT-53953

This commit is contained in:
Mikhail Glukhikh
2022-09-15 09:26:36 +02:00
committed by Space
parent ed1a1c067c
commit 3e5d5bcaa7
7 changed files with 96 additions and 0 deletions
@@ -0,0 +1,16 @@
// !LANGUAGE: -ForbidSuperDelegationToAbstractFakeOverride
interface Foo {
fun check(): String = "OK"
}
abstract class Base {
abstract fun check(): String
}
abstract class Derived : Base(), Foo
abstract class Derived2 : Derived() // ONE MORE LEVEL
class Problem : Derived2() {
override fun check(): String {
return super.check() // NO COMPILER ERROR, BUT FAILURE IN RUNTIME
}
}