b3e075173b
#KT-5863 Fixed
10 lines
225 B
Kotlin
Vendored
10 lines
225 B
Kotlin
Vendored
inline fun <R> performWithFinally(finally: () -> R) : R {
|
|
try {
|
|
throw RuntimeException("1")
|
|
} catch (e: RuntimeException) {
|
|
throw RuntimeException("2")
|
|
} finally {
|
|
return finally()
|
|
}
|
|
}
|