Files
Tianyu Geng 56bec6997c 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.
2021-03-24 17:48:39 +03:00

17 lines
226 B
Kotlin
Vendored

class A
open class B
class C : <!SUPERTYPE_NOT_INITIALIZED!>B<!>
fun bar(a: A) = a
fun bar(b: B) = b
fun foo() {
val a = A()
val b = B()
val c = C()
val ra = bar(a)
val rb = bar(b)
val rc = bar(c)
}