mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
12 lines
230 B
Kotlin
Vendored
12 lines
230 B
Kotlin
Vendored
fun testIf() {
|
|
if (todo()) <!UNREACHABLE_CODE!>1<!> else <!UNREACHABLE_CODE!>2<!>
|
|
}
|
|
|
|
fun testIf1(b: Boolean) {
|
|
if (b) todo() else <!UNUSED_EXPRESSION!>1<!>
|
|
|
|
bar()
|
|
}
|
|
|
|
fun todo(): Nothing = throw Exception()
|
|
fun bar() {} |