diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/dfa/cfg/ControlFlowGraphBuilder.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/dfa/cfg/ControlFlowGraphBuilder.kt index 3576738c337..5446b6ffedb 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/dfa/cfg/ControlFlowGraphBuilder.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/dfa/cfg/ControlFlowGraphBuilder.kt @@ -1137,11 +1137,13 @@ class ControlFlowGraphBuilder { return createContractDescriptionEnterNode().also { lastNodes.push(it) + exitTargetsForTry.push(it) } } fun exitContractDescription() { lastNodes.pop() + exitTargetsForTry.pop() popGraph() }