56bec6997c
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.
17 lines
226 B
Kotlin
Vendored
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)
|
|
}
|