Files
kotlin-fork/compiler/testData/diagnostics/tests/controlFlowAnalysis/deadCode/initializationInUnreachableCode.kt
T
2023-07-05 06:56:15 +00:00

14 lines
220 B
Kotlin
Vendored

// COMPARE_WITH_LIGHT_TREE
// ISSUE: KT-40851
fun error(): Nothing = throw Exception()
class Some() {
<!MUST_BE_INITIALIZED_OR_BE_ABSTRACT!>var x: Int<!>
val y: Int = error()
init {
x = 1;
}
}