Files
kotlin-fork/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt52131.kt
T
Mads Ager 17b5e46547 [FE1.0] Fix CFG for inline function calls in finally blocks.
The body of the InlinedLocalFunctionDeclarationInstruction was
not copied. That confuses the information on the exceptional edge
with the information on the normal edge.

^KT-52131 Fixed
2022-04-28 14:39:59 +03:00

11 lines
125 B
Kotlin
Vendored

// FIR_IDENTICAL
fun foo(): Int {
var result = 0
try {
} finally {
42.let { }
}
return result
}