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:
committed by
Dmitriy Novozhilov
parent
6134c00698
commit
56bec6997c
@@ -4,9 +4,9 @@ package toplevelObjectDeclarations
|
||||
open fun foo() : Int = 1
|
||||
}
|
||||
|
||||
<!INAPPLICABLE_CANDIDATE!>class T : Foo {}<!>
|
||||
<!INAPPLICABLE_CANDIDATE!>class T : <!SUPERTYPE_NOT_INITIALIZED!>Foo<!> {}<!>
|
||||
|
||||
<!INAPPLICABLE_CANDIDATE!>object A : Foo {
|
||||
<!INAPPLICABLE_CANDIDATE!>object A : <!SUPERTYPE_NOT_INITIALIZED!>Foo<!> {
|
||||
val x : Int = 2
|
||||
|
||||
fun test() : Int {
|
||||
|
||||
Reference in New Issue
Block a user