[FIR] UNREACHABLE_CODE diagnostic (wip)
Implementation for PSI only
This commit is contained in:
committed by
TeamCityServer
parent
dcd61c292d
commit
ec4cbfef59
Vendored
+3
-3
@@ -1,11 +1,11 @@
|
||||
fun testInvoke() {
|
||||
operator fun Nothing.invoke(): Nothing = this
|
||||
todo()()
|
||||
todo()<!UNREACHABLE_CODE!>()<!>
|
||||
}
|
||||
|
||||
fun testInvokeWithLambda() {
|
||||
operator fun Nothing.invoke(i: Int, f: () -> Int) = f
|
||||
todo()(1){ 42 }
|
||||
todo()<!UNREACHABLE_CODE!>(1){ 42 }<!>
|
||||
}
|
||||
|
||||
fun todo(): Nothing = throw Exception()
|
||||
fun todo(): Nothing = throw Exception()
|
||||
|
||||
Reference in New Issue
Block a user