[FIR] Support diagnostic ABSTRACT_SUPER_CALL

This commit is contained in:
Nick
2020-04-11 14:29:50 +03:00
committed by Mikhail Glukhikh
parent 8960829c01
commit c4b7ac994b
12 changed files with 215 additions and 13 deletions
@@ -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<!>
}
}