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