[FIR] Support diagnostic ABSTRACT_SUPER_CALL
This commit is contained in:
+41
@@ -0,0 +1,41 @@
|
||||
open class C {
|
||||
open val x: Int = 10
|
||||
fun h() {}
|
||||
}
|
||||
|
||||
abstract class A : C() {
|
||||
override val x: Int = 20
|
||||
|
||||
abstract val y: Int
|
||||
|
||||
abstract fun f()
|
||||
|
||||
fun t() {
|
||||
super.h()
|
||||
super.x
|
||||
}
|
||||
}
|
||||
|
||||
class B : A() {
|
||||
override fun f() {
|
||||
|
||||
}
|
||||
|
||||
fun g() {
|
||||
super.<!ABSTRACT_SUPER_CALL!>f<!>()
|
||||
super.t()
|
||||
|
||||
super.x
|
||||
super.<!ABSTRACT_SUPER_CALL!>y<!>
|
||||
}
|
||||
}
|
||||
|
||||
abstract class J : A() {
|
||||
fun r() {
|
||||
super.<!ABSTRACT_SUPER_CALL!>f<!>()
|
||||
super.t()
|
||||
|
||||
super.x
|
||||
super.<!ABSTRACT_SUPER_CALL!>y<!>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user