Files
kotlin/compiler/testData/diagnostics/tests/controlFlowAnalysis/deadCode/deadCodeInAssignment.fir.kt

18 lines
249 B
Kotlin
Vendored

fun testAssignment() {
var a = 1
a = todo()
}
fun testVariableDeclaration() {
val a = todo()
}
fun testPlusAssign() {
operator fun Int.plusAssign(i: Int) {}
var a = 1
a += todo()
}
fun todo(): Nothing = throw Exception()