ec4cbfef59
Implementation for PSI only
25 lines
437 B
Kotlin
Vendored
25 lines
437 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
fun unreachable0() {
|
|
return
|
|
<!UNREACHABLE_CODE!>return todo()<!>
|
|
}
|
|
|
|
fun unreachable2() {
|
|
return
|
|
<!UNREACHABLE_CODE!>val <!UNUSED_VARIABLE!>a<!> = todo()<!>
|
|
}
|
|
|
|
fun unreachable3() {
|
|
return
|
|
<!UNREACHABLE_CODE!>bar(todo())<!>
|
|
}
|
|
|
|
fun unreachable4(array: Array<Any>) {
|
|
return
|
|
<!UNREACHABLE_CODE!>array[todo()]<!>
|
|
}
|
|
|
|
fun bar(a: Any) {}
|
|
fun todo(): Nothing = throw Exception()
|