Mark only unreachable parts of element if it has reachable parts

like for 'return todo()' mark only 'return'
This commit is contained in:
Svetlana Isakova
2014-06-11 19:35:00 +04:00
parent 88ecc5cc59
commit 79cec6411d
38 changed files with 597 additions and 84 deletions
@@ -17,7 +17,7 @@ fun lock<T>(lock : Lock, body : () -> T) : T {
//more tests
fun t1() : Int {
try {
<!UNREACHABLE_CODE!>return 1<!>
<!UNREACHABLE_CODE!>return<!> 1
}
finally {
return 2