[FIR] Defer computation of enhanced return type when overridden has implicit return type

#KT-66048
This commit is contained in:
Kirill Rakhman
2024-02-27 16:46:06 +01:00
committed by Space Team
parent 888cac6fc0
commit 885ba11d97
6 changed files with 113 additions and 24 deletions
@@ -241,7 +241,7 @@ open class ReturnTypeCalculatorWithJump(
}
}
if (declaration.isCopyCreatedInScope) {
if (declaration.canHaveDeferredReturnTypeCalculation) {
val resolvedTypeRef = callableCopyTypeCalculator.computeReturnType(declaration)
requireWithAttachment(
resolvedTypeRef is FirResolvedTypeRef,