[SLC] Treat error class types as not-nullable
This commit is contained in:
committed by
Space Team
parent
bdad2e5c88
commit
25c0725da9
+1
@@ -126,6 +126,7 @@ internal fun KtLightElement<*, *>.isOriginEquivalentTo(that: PsiElement?): Boole
|
||||
}
|
||||
|
||||
internal fun KtAnalysisSession.getTypeNullability(ktType: KtType): NullabilityType {
|
||||
if (ktType is KtClassErrorType) return NullabilityType.NotNull
|
||||
if (ktType.nullabilityType != NullabilityType.NotNull) return ktType.nullabilityType
|
||||
|
||||
if (ktType.isUnit) return NullabilityType.NotNull
|
||||
|
||||
Reference in New Issue
Block a user