FirTypeIntersectionScope: don't create in no-supertypes situation
This commit is contained in:
+3
@@ -493,6 +493,9 @@ class FirTypeIntersectionScope private constructor(
|
|||||||
dispatchReceiverType: ConeKotlinType,
|
dispatchReceiverType: ConeKotlinType,
|
||||||
): FirTypeScope {
|
): FirTypeScope {
|
||||||
scopes.singleOrNull()?.let { return it }
|
scopes.singleOrNull()?.let { return it }
|
||||||
|
if (scopes.isEmpty()) {
|
||||||
|
return Empty
|
||||||
|
}
|
||||||
return FirTypeIntersectionScope(session, overrideChecker, scopes, dispatchReceiverType)
|
return FirTypeIntersectionScope(session, overrideChecker, scopes, dispatchReceiverType)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user