Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/arguments/tryInLambda.kt
T
2020-12-16 19:52:30 +03:00

14 lines
187 B
Kotlin
Vendored

fun <T> myRun(block: () -> T): T = block()
fun foo() {}
fun test() {
myRun {
try {
val x = 1
} catch(e: Exception) {
foo()
}
}
}