Test for KT-3162 More precise try-finally error marking

#KT-3162 Obsolete
This commit is contained in:
Svetlana Isakova
2014-06-23 18:58:54 +04:00
parent 6a4ccfd91d
commit 0673dc51d6
2 changed files with 17 additions and 0 deletions
@@ -0,0 +1,12 @@
//KT-3162 More precise try-finally error marking
fun foo(x: String) : String {
<!UNREACHABLE_CODE!>val <!UNUSED_VARIABLE!>a<!> =<!> try {
x
} finally {
try {
} catch (e: Exception) {
}
return x
}
}