mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
36 lines
489 B
Kotlin
Vendored
36 lines
489 B
Kotlin
Vendored
fun f() {
|
|
var foo = 1
|
|
try {
|
|
foo = 2
|
|
throw RuntimeException()
|
|
} catch (e: Throwable) {
|
|
foo.hashCode()
|
|
}
|
|
throw Exception()
|
|
}
|
|
|
|
fun g() {
|
|
var foo = 1
|
|
try {
|
|
foo = 2
|
|
f()
|
|
} catch (e: Throwable) {
|
|
foo.hashCode()
|
|
}
|
|
}
|
|
|
|
fun h() {
|
|
try {
|
|
|
|
}
|
|
finally {
|
|
var foo = 1
|
|
try {
|
|
foo = 2
|
|
g()
|
|
}
|
|
catch (e: Throwable) {
|
|
foo.hashCode()
|
|
}
|
|
}
|
|
} |