[FIR] UNREACHABLE_CODE diagnostic (wip)
Implementation for PSI only
This commit is contained in:
committed by
TeamCityServer
parent
dcd61c292d
commit
ec4cbfef59
+3
-3
@@ -3,11 +3,11 @@
|
||||
fun testArgumentInCall() {
|
||||
fun bar(i: Int, s: String, x: Any) {}
|
||||
|
||||
bar(1, todo(), "")
|
||||
<!UNREACHABLE_CODE!>bar(<!>1, todo(), <!UNREACHABLE_CODE!>"")<!>
|
||||
}
|
||||
|
||||
fun testArgumentInVariableAsFunctionCall(f: (Any) -> Unit) {
|
||||
f(todo())
|
||||
<!UNREACHABLE_CODE!>f(<!>todo()<!UNREACHABLE_CODE!>)<!>
|
||||
}
|
||||
|
||||
fun todo(): Nothing = throw Exception()
|
||||
fun todo(): Nothing = throw Exception()
|
||||
|
||||
Reference in New Issue
Block a user