Files
kotlin-fork/compiler/testData/diagnostics/tests/functionLiterals/kt47493.kt
T
2021-08-06 13:27:57 +03:00

24 lines
320 B
Kotlin
Vendored

fun test1() {
try {
{ <!CANNOT_INFER_PARAMETER_TYPE!>toDouble<!> ->
}
} catch (e: Exception) {
}
}
fun test2() {
try {
} catch (e: Exception) {
{ <!CANNOT_INFER_PARAMETER_TYPE!>toDouble<!> ->
}
}
}
fun box(): String {
test1()
test2()
return "OK"
}