[FIR] UNREACHABLE_CODE diagnostic (wip)

Implementation for PSI only
This commit is contained in:
Andrey Zinovyev
2021-07-29 12:39:47 +03:00
committed by TeamCityServer
parent dcd61c292d
commit ec4cbfef59
47 changed files with 348 additions and 220 deletions
@@ -2,22 +2,22 @@
fun unreachable0() {
return
return todo()
<!UNREACHABLE_CODE!>return todo()<!>
}
fun unreachable2() {
return
val a = todo()
<!UNREACHABLE_CODE!>val <!UNUSED_VARIABLE!>a<!> = todo()<!>
}
fun unreachable3() {
return
bar(todo())
<!UNREACHABLE_CODE!>bar(todo())<!>
}
fun unreachable4(array: Array<Any>) {
return
array[todo()]
<!UNREACHABLE_CODE!>array[todo()]<!>
}
fun bar(a: Any) {}