mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
12 lines
221 B
Kotlin
12 lines
221 B
Kotlin
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() = throw Exception()
|
|
fun bar() {} |