blob: f05e82da8dd310da0f2fd37e3be280ef22e6e2eb [file]
// RUN_PIPELINE_TILL: FRONTEND
// SKIP_TXT
class ExcA : Exception()
class ExcB(val map: Map<Int, Int>) : Exception()
fun test0(): List<Int> = run {
try {
emptyList()
} finally {
""
fun foo() {}
}
}
fun test1(): Map<Int, Int> = run {
try {
emptyMap()
} catch (e: ExcA) {
emptyMap()
} catch (e: ExcB) {
e.map
} finally {
""
}
}
fun test2(): Map<Int, Int> = run {
<!TYPE_MISMATCH!>try {
emptyMap()
} catch (e: ExcA) {
<!TYPE_MISMATCH!>mapOf(<!TYPE_MISMATCH!>"" to ""<!>)<!>
}<!>
}
/* GENERATED_FIR_TAGS: classDeclaration, functionDeclaration, lambdaLiteral, localFunction, localProperty,
primaryConstructor, propertyDeclaration, stringLiteral, tryExpression */