Do not mark comment next to reachable child as unreachable

This commit is contained in:
Svetlana Isakova
2014-06-20 19:47:58 +04:00
parent eec6fbb205
commit 8680ff4e88
3 changed files with 31 additions and 1 deletions
@@ -0,0 +1,22 @@
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, @l(todo()/*comment*/), <!UNREACHABLE_CODE!>"")<!>
}
fun todo() = throw Exception()
fun bar(<!UNUSED_PARAMETER!>i<!>: Int, <!UNUSED_PARAMETER!>s<!>: String, <!UNUSED_PARAMETER!>a<!>: Any) {}