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
+2
-2
@@ -10,10 +10,10 @@ package test.p; class C {fun f() {}}
|
||||
package test.p; open class G<T> {open fun f(): T {} fun a() {}}
|
||||
|
||||
// FILE: d.kt
|
||||
package test.p; class G2<E> : G<E> { fun g() : E {} override fun f() : E {}}
|
||||
package test.p; class G2<E> : <!SUPERTYPE_NOT_INITIALIZED!>G<E><!> { fun g() : E {} override fun f() : E {}}
|
||||
|
||||
// FILE: e.kt
|
||||
package test.p; fun foo() {}
|
||||
|
||||
// FILE: f.kt
|
||||
package test.p; fun foo(a: C) {}
|
||||
package test.p; fun foo(a: C) {}
|
||||
|
||||
Reference in New Issue
Block a user