[FIR] Support deferred return type computation for synthetic properties
#KT-66048 Fixed
This commit is contained in:
committed by
Space Team
parent
973e337bf5
commit
89ecb92551
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user