diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirTypeIntersectionScope.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirTypeIntersectionScope.kt index 618488e7776..cfb77f7a65e 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirTypeIntersectionScope.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirTypeIntersectionScope.kt @@ -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) } }