Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/tryInference.kt
T
2021-06-07 15:25:47 +03:00

18 lines
338 B
Kotlin
Vendored

fun <T> materialize(): T = throw Exception()
interface A
fun takeA(a: A) {}
fun test() {
takeA(
try {
materialize()
} catch (e: Exception) {
materialize()
} finally {
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>materialize<!>() // Should be an errror
}
)
}