Files
kotlin-fork/compiler/testData/diagnostics/tests/controlFlowAnalysis/deadCode/deadCodeFromDifferentSources.fir.kt
T

23 lines
251 B
Kotlin
Vendored

package c
fun test1() {
val r: Nothing = null!!
}
fun test2(a: A) {
a + a
bar()
}
fun test3() {
null!!
bar()
}
fun throwNPE(): Nothing = null!!
class A {
operator fun plus(a: A): Nothing = throw Exception()
}
fun bar() {}