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.
24 lines
359 B
Kotlin
Vendored
24 lines
359 B
Kotlin
Vendored
// FILE: test.kt
|
|
|
|
package test
|
|
|
|
sealed class Test {
|
|
object O : Test()
|
|
|
|
class Extra(val x: Int): <!SUPERTYPE_NOT_INITIALIZED!>Test<!>
|
|
}
|
|
|
|
// FILE: main.kt
|
|
|
|
package other
|
|
|
|
import test.Test.*
|
|
|
|
abstract class Factory {
|
|
abstract fun createTest(): <!UNRESOLVED_REFERENCE!>Test<!>
|
|
|
|
abstract fun createObj(): O
|
|
|
|
abstract fun createExtra(): Extra
|
|
}
|