Files
kotlin-fork/compiler/testData/diagnostics/tests/controlFlowAnalysis/deadCode/initializationInUnreachableCode.fir.kt
T
Mikhail Glukhikh 9d3bf69212 Raw FIR/LT: use similar sources for delegated constructor calls
After this commit all IR source range tests behave in the same way
for FIR/PSI and FIR/LT, test data is now consistent
2023-10-10 13:38:52 +00:00

13 lines
198 B
Kotlin
Vendored

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