Mark only unreachable parts of element if it has reachable parts
like for 'return todo()' mark only 'return'
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
fun test11() {
|
||||
fun Any.bar(<!UNUSED_PARAMETER!>i<!>: Int) {}
|
||||
todo().<!UNREACHABLE_CODE!>bar(1)<!>
|
||||
}
|
||||
|
||||
fun test12() {
|
||||
fun Any.bar(<!UNUSED_PARAMETER!>i<!>: Int) {}
|
||||
todo()<!UNNECESSARY_SAFE_CALL!>?.<!><!UNREACHABLE_CODE!>bar(1)<!>
|
||||
}
|
||||
|
||||
fun todo() = throw Exception()
|
||||
Reference in New Issue
Block a user