diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirAbstractImportingScope.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirAbstractImportingScope.kt index c0fb5a0a5f9..c1a8ea0cc8b 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirAbstractImportingScope.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirAbstractImportingScope.kt @@ -49,7 +49,7 @@ abstract class FirAbstractImportingScope(session: FirSession, lookupInFir: Boole if (action.stop()) { return ProcessorAction.STOP } - } else { + } else if (name.isSpecial || name.identifier.isNotEmpty()) { val matchedClass = provider.getClassLikeSymbolByFqName(ClassId(import.packageFqName, name)) if (processConstructors( matchedClass, diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirAbstractStarImportingScope.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirAbstractStarImportingScope.kt index eeb5ddb09d1..42e7548f253 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirAbstractStarImportingScope.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirAbstractStarImportingScope.kt @@ -27,10 +27,10 @@ abstract class FirAbstractStarImportingScope( ): Boolean { for (import in starImports) { val relativeClassName = import.relativeClassName - val classId = if (relativeClassName == null) { - ClassId(import.packageFqName, name) - } else { - ClassId(import.packageFqName, relativeClassName.child(name), false) + val classId = when { + !name.isSpecial && name.identifier.isEmpty() -> return true + relativeClassName == null -> ClassId(import.packageFqName, name) + else -> ClassId(import.packageFqName, relativeClassName.child(name), false) } val symbol = provider.getClassLikeSymbolByFqName(classId) ?: continue if (!processor(symbol)) {