Files
kotlin-fork/compiler/testData/diagnostics/tests/controlFlowAnalysis/deadCode/commentsInDeadCode.fir.kt
T
2021-10-27 12:26:59 +03:00

23 lines
464 B
Kotlin
Vendored

package a
fun test1() {
<!UNREACHABLE_CODE!>bar(<!>
11,
todo(),//comment1
<!UNREACHABLE_CODE!>""//comment2
)<!>
}
fun test2() {
<!UNREACHABLE_CODE!>bar(<!>11, todo()/*comment1*/, <!UNREACHABLE_CODE!>""/*comment2*/)<!>
}
fun test3() {
<!UNREACHABLE_CODE!>bar(<!>11, <!UNREACHABLE_CODE!>l@(<!>todo()/*comment*/<!UNREACHABLE_CODE!>), "")<!>
}
fun todo(): Nothing = throw Exception()
fun bar(i: Int, s: String, a: Any) {}