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

15 lines
242 B
Kotlin
Vendored

fun testPrefix() {
operator fun Any.not() {}
!todo()
}
fun testPostfixWithCall(n: Nothing) {
operator fun Nothing.inc(): Nothing = this
n++
}
fun testPostfixSpecial() {
todo()!!
}
fun todo(): Nothing = throw Exception()