Files
kotlin-fork/compiler/testData/diagnostics/tests/functionLiterals/kt47493.kt
T
2023-08-15 08:04:19 +00:00

25 lines
337 B
Kotlin
Vendored

// FIR_IDENTICAL
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"
}