[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
@@ -1,11 +1,11 @@
fun test11() {
fun Any.bar(i: Int) {}
todo().bar(1)
todo()<!UNREACHABLE_CODE!>.bar(1)<!>
}
fun test12() {
fun Any.bar(i: Int) {}
todo()<!UNNECESSARY_SAFE_CALL!>?.<!>bar(1)
todo()<!UNREACHABLE_CODE!><!UNNECESSARY_SAFE_CALL!>?.<!>bar(1)<!>
}
fun todo(): Nothing = throw Exception()