[LL FIR] KT-55327 Use body resolve return type calculator for locals
- LL FIR uses `ReturnTypeCalculatorWithJump` by default because it cannot guarantee that the implicit types of non-local functions referenced in a function `f` have been resolved during body resolve of `f`. - However, if `ReturnTypeCalculatorWithJump` encountered a local function, it tried to resolve its return type even during body resolve of that same local function. The fix delegates to `ReturnTypeCalculatorForFullBodyResolve`, which should be used for local declarations. ^KT-55327 fixed ^KT-55324 fixed
This commit is contained in:
-1
@@ -1,4 +1,3 @@
|
||||
// FIR_IDE_IGNORE
|
||||
fun foo() {
|
||||
fun bar() = (fun() = bar())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user