UnreachableCode.getUnreachableTextRanges always returns at least one range #KT-14158 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-10-20 15:17:41 +03:00
parent 4fc135709e
commit bfaa9cf56f
6 changed files with 30 additions and 2 deletions
@@ -16,7 +16,7 @@ fun fff(): Int {
var d = 3
when(d) {
4 -> <!UNUSED_EXPRESSION!>21<!>
return 2 -> <!UNREACHABLE_CODE!>return 47<!>
return 2<!UNREACHABLE_CODE!><!> -> <!UNREACHABLE_CODE!>return 47<!>
<!UNREACHABLE_CODE!>bar() -> 45<!>
<!UNREACHABLE_CODE!>444 -> true<!>
}