[FIR] UNREACHABLE_CODE diagnostic (wip)

Implementation for PSI only
This commit is contained in:
Andrey Zinovyev
2021-07-29 12:39:47 +03:00
committed by TeamCityServer
parent dcd61c292d
commit ec4cbfef59
47 changed files with 348 additions and 220 deletions
@@ -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()