[SLC] map kotlin.Unit type typealias into void return type
^KT-65843 Fixed
This commit is contained in:
committed by
Space Team
parent
8dd66c0810
commit
d64fc9b777
+7
-1
@@ -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 ->
|
||||
|
||||
Reference in New Issue
Block a user