[FIR] Support deferred return type computation for synthetic properties

#KT-66048 Fixed
This commit is contained in:
Kirill Rakhman
2024-03-06 17:52:29 +01:00
committed by Space Team
parent 973e337bf5
commit 89ecb92551
3 changed files with 4 additions and 3 deletions
@@ -348,6 +348,7 @@ fun BodyResolveComponents.typeFromCallee(access: FirElement, calleeReference: Fi
private fun BodyResolveComponents.typeFromSymbol(symbol: FirBasedSymbol<*>): FirResolvedTypeRef {
return when (symbol) {
is FirSyntheticPropertySymbol -> typeFromSymbol(symbol.getterSymbol!!.delegateFunctionSymbol)
is FirCallableSymbol<*> -> {
val returnTypeRef = returnTypeCalculator.tryCalculateReturnType(symbol.fir)
returnTypeRef.copyWithNewSource(null)