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
+5 -5
View File
@@ -1,11 +1,11 @@
open class NoC
class NoC1 : NoC
class NoC1 : <!SUPERTYPE_NOT_INITIALIZED!>NoC<!>
class WithC0() : NoC()
open class WithC1() : NoC
class NoC2 : WithC1
open class WithC1() : <!SUPERTYPE_NOT_INITIALIZED!>NoC<!>
class NoC2 : <!SUPERTYPE_NOT_INITIALIZED!>WithC1<!>
class NoC3 : WithC1()
class WithC2() : WithC1
class WithC2() : <!SUPERTYPE_NOT_INITIALIZED!>WithC1<!>
class WithPC0() {
}
@@ -32,4 +32,4 @@ class NoCPI {
var ab = <!PROPERTY_INITIALIZER_NO_BACKING_FIELD!>1<!>
get() = 1
set(v) {}
}
}