Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/multifile/sealedStarImport.kt
T
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

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
}