[FIR] UNREACHABLE_CODE diagnostic (wip)
Implementation for PSI only
This commit is contained in:
committed by
TeamCityServer
parent
dcd61c292d
commit
ec4cbfef59
+5
-5
@@ -1,18 +1,18 @@
|
||||
package a
|
||||
|
||||
fun test1() {
|
||||
bar(
|
||||
<!UNREACHABLE_CODE!>bar(<!>
|
||||
11,
|
||||
todo(),//comment1
|
||||
""//comment2
|
||||
)
|
||||
<!UNREACHABLE_CODE!>""//comment2
|
||||
)<!>
|
||||
}
|
||||
|
||||
fun test2() {
|
||||
bar(11, todo()/*comment1*/, ""/*comment2*/)
|
||||
<!UNREACHABLE_CODE!>bar(<!>11, todo()/*comment1*/, <!UNREACHABLE_CODE!>""/*comment2*/)<!>
|
||||
}
|
||||
fun test3() {
|
||||
bar(11, l@(todo()/*comment*/), "")
|
||||
<!UNREACHABLE_CODE!>bar(<!>11, <!UNREACHABLE_CODE!>l@(<!>todo()/*comment*/<!UNREACHABLE_CODE!>), "")<!>
|
||||
}
|
||||
|
||||
fun todo(): Nothing = throw Exception()
|
||||
|
||||
Reference in New Issue
Block a user