[FIR] UNREACHABLE_CODE diagnostic (wip)
Implementation for PSI only
This commit is contained in:
committed by
TeamCityServer
parent
dcd61c292d
commit
ec4cbfef59
+2
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user