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

14 lines
284 B
Kotlin
Vendored

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