mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 08:31:31 +00:00
12 lines
250 B
Kotlin
Vendored
12 lines
250 B
Kotlin
Vendored
//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
|
|
}
|
|
} |