FE: add test reproducing KT-53953
This commit is contained in:
Vendored
+16
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user