ec4cbfef59
Implementation for PSI only
23 lines
398 B
Kotlin
Vendored
23 lines
398 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
|
|
fun testFor() {
|
|
operator fun Nothing.iterator() = (0..1).iterator()
|
|
|
|
<!UNREACHABLE_CODE!>for (i in<!> todo()<!UNREACHABLE_CODE!>) {}<!>
|
|
}
|
|
|
|
fun testWhile() {
|
|
<!UNREACHABLE_CODE!>while (<!>todo()<!UNREACHABLE_CODE!>) {
|
|
}<!>
|
|
}
|
|
|
|
fun testDoWhile() {
|
|
do {
|
|
|
|
} while(todo())
|
|
|
|
<!UNREACHABLE_CODE!>bar()<!>
|
|
}
|
|
|
|
fun todo(): Nothing = throw Exception()
|
|
fun bar() {} |