[SLC] map kotlin.Unit type typealias into void return type

^KT-65843 Fixed
This commit is contained in:
Dmitrii Gridin
2024-02-15 22:45:14 +01:00
committed by Space Team
parent 8dd66c0810
commit d64fc9b777
6 changed files with 11 additions and 51 deletions
@@ -205,10 +205,16 @@ internal class SymbolLightSimpleMethod(
}
}
context(KtAnalysisSession)
private val KtType.isInlineClassType: Boolean
get() = ((this as? KtNonErrorClassType)?.classSymbol as? KtNamedClassOrObjectSymbol)?.isInline == true
private val KtType.isVoidType: Boolean get() = isUnit && nullabilityType != NullabilityType.Nullable
context(KtAnalysisSession)
private val KtType.isVoidType: Boolean
get() {
val expandedType = fullyExpandedType
return expandedType.isUnit && expandedType.nullabilityType != NullabilityType.Nullable
}
private val _returnedType: PsiType by lazyPub {
withFunctionSymbol { functionSymbol ->