| // RUN_PIPELINE_TILL: FRONTEND | |
| // CHECK_TYPE | |
| fun tryFinally(x: Int?) { | |
| try { | |
| } finally { | |
| x!! | |
| } | |
| checkSubtype<Int>(x) | |
| } | |
| fun tryCatchFinally(x: Int?) { | |
| try { | |
| x!! | |
| } catch (e: Exception) { | |
| x!! | |
| } finally { | |
| checkSubtype<Int>(<!ARGUMENT_TYPE_MISMATCH!>x<!>) | |
| x!! | |
| } | |
| checkSubtype<Int>(x) | |
| } | |
| /* GENERATED_FIR_TAGS: checkNotNullCall, classDeclaration, funWithExtensionReceiver, functionDeclaration, functionalType, | |
| infix, localProperty, nullableType, propertyDeclaration, smartcast, tryExpression, typeParameter, typeWithExtension */ |