blob: f0e62458e68dc9bd9641285bc2ff25bc1b711daa [file] [log] [blame]
// RUN_PIPELINE_TILL: FRONTEND
fun <T> materialize(): T = throw Exception()
interface A
fun takeA(a: A) {}
fun test() {
takeA(
try {
materialize()
} catch (e: Exception) {
materialize()
} finally {
<!CANNOT_INFER_PARAMETER_TYPE, NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>materialize<!>() // Should be an errror
}
)
}