FIR checker: report SUPERTYPE_NOT_INITIALIZED

Combined this and the checker of
SUPERTYPE_INITIALIZED_WITHOUT_PRIMARY_CONSTRUCTOR together.

Also fixed SUPERTYPE_INITIALIZED_WITHOUT_PRIMARY_CONSTRUCTOR incorrectly
repoted as warning instead of error.
This commit is contained in:
Tianyu Geng
2021-03-09 15:25:05 -08:00
committed by Dmitriy Novozhilov
parent 6134c00698
commit 56bec6997c
30 changed files with 256 additions and 107 deletions
@@ -4,7 +4,7 @@
expect open class A
expect class B : A
open class C : A
open class C : <!SUPERTYPE_NOT_INITIALIZED!>A<!>
// MODULE: m1-jvm(m1-common)
// FILE: jvm.kt
@@ -15,4 +15,4 @@ actual typealias Presence = P
sealed class P {
object Online : P()
object Offline : P()
}
}